Keypress

ceaser

Active Member
Licensed User
Help:sign0085:

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
 

ceaser

Active Member
Licensed User
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
 
Top