Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Official Updates
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Official Updates Updates to official libraries could be found here.
This forum is only available to licensed users.


Door library (Beta) - Special library


Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 05-13-2008, 06:13 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

It is better to open a new thread for each question.
Can't you use a TextBox instead? You can hide the TextBox with an image.
Reply With Quote
  #42 (permalink)  
Old 05-13-2008, 06:37 AM
Junior Member
 
Join Date: May 2007
Posts: 27
Default

Sorry Erel for my clumsiness, next time I will use a new tread... The thing is I would like use de Hekkus library (Thanks Louis and Erel for this great library) to play a sound just while a hey is pressed: From keydown (the sound start) to Keyup event (the sound strop). Maybe is an stupid question, but I don't know how get that...
Reply With Quote
  #43 (permalink)  
Old 05-13-2008, 06:53 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

Sorry you can't do it with a textbox.
Try this:
obj is an Object, eventKey... is Events.
Code:
Sub App_Start
    Form1.Show
    obj.New1(false)
    obj.FromControl("form1")
    obj.SetProperty("KeyPreview",true)
    eventKeyDown.New1(obj.Value,"KeyDown")
    eventKeyUp.New1(obj.Value,"KeyUp")
End Sub

Sub eventKeyDown_NewEvent
    obj.Value = eventKeyDown.Data
    form1.Text = obj.GetProperty("KeyCode") & " is down"
End Sub

Sub eventKeyUp_NewEvent
    form1.Text = "Key Up"
End Sub
Reply With Quote
  #44 (permalink)  
Old 05-13-2008, 02:28 PM
Junior Member
 
Join Date: May 2007
Posts: 27
Default

Great, this code works perfectly! Thanks for you effort
Reply With Quote
  #45 (permalink)  
Old 05-29-2008, 06:28 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
Default BindingContext property with Door.dll?

Hello Erel,
is it possible to use the BindingContext property of an control to bind datas of a SQLite-Table e.g. to that control, with door libary and if so, how??

Best Regards

berndgoedecke
Reply With Quote
  #46 (permalink)  
Old 05-29-2008, 07:15 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

It is not possible.
Reply With Quote
  #47 (permalink)  
Old 07-18-2008, 01:54 PM
Newbie
 
Join Date: Jul 2008
Posts: 4
Default

Doesn't work with TreeView controls on the device (NullReferenceException thrown). Works fine on desktop.
Code:
Sub App_Start    
    objMain.New1(False)
    objMain.Value = tvMain.ControlRef
    objMain.SetProperty("Sorted", "True")
    
    frmMain.Show
End Sub
Same outcome with:
Code:
objMain.FromControl("tvMain")
objMain.FromControl(tvMain.ControlRef)
Reply With Quote
  #48 (permalink)  
Old 07-18-2008, 02:23 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

Many properties and methods which are available in the full .Net Framework aren't available in the .Net Compact Framework.
As you can see in this page: TreeView Members (System.Windows.Forms)
The Sorted property doesn't have the small device icon and therefore not included in the .Net CF.
Reply With Quote
  #49 (permalink)  
Old 07-18-2008, 02:33 PM
Newbie
 
Join Date: Jul 2008
Posts: 4
Default

Thank you Erel, for prompt response & explanation
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM
load textfile with special characters (äöü) bob Questions & Help Needed 2 11-19-2007 01:24 PM
New serial library - beta version Erel Announcements 13 08-02-2007 12:24 PM
Special Folders on PC BPak Questions & Help Needed 2 06-01-2007 09:53 PM


All times are GMT. The time now is 04:34 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0