Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Keypress

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 03:41 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default Keypress

Help

Some of the PPC have real keyboards! In VB when I hit the "Enter" button it returns a keypress of 13. Is it possible to do the same here? What I want to do is where there are a couple of input boxes (textboxes), that the focus gets to the first input box (whn the form gets loaded), the user enters the data and hits the "Enter" button and then the focus must go to the next textbox.

Thanks
Michael
Reply With Quote
  #2 (permalink)  
Old 05-27-2008, 04:18 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Regular textboxes don't catch the Enter button. It will catch it if you set Multiline to true.
Then you can check for chr(13) and use TextBox.Handled to ignore this sign.
Reply With Quote
  #3 (permalink)  
Old 05-28-2008, 04:21 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default Keypress

Hi Erel

Thanks for the help.

I see it works on a normal textbox as well.

Sub LeftCoord_Keypress(Keypress)
If keypress=Chr(13) AND LeftCoord.Text<>"" Then TopCoord.Focus
End Sub

Thanks
Michael
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
getting the Pressed Key in the KeyPress event Cableguy Questions (Windows Mobile) 2 09-05-2008 05:17 PM
Keypress and SelectionChanged.. robee9931 Questions (Windows Mobile) 1 05-27-2008 03:08 PM
Delete keypress emaster Questions (Windows Mobile) 2 12-04-2007 06:15 AM
How to create endless loop with keypress Stellaferox Questions (Windows Mobile) 10 05-17-2007 08:09 PM


All times are GMT. The time now is 09:37 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0