
May 19th, 2008, 01:34 PM
|
|
Registered User
|
|
Join Date: May 2008
Posts: 1
Time spent in forums: 22 m 50 sec
Reputation Power: 0
|
|
on using enter key to move between controls.
Quote: | Originally Posted by Lauramc I had this problem, and have found (finally) a solution that works:
PrivateSub Form1_KeyDown(ByVal sender AsObject, ByVal e As System.Windows.Forms.KeyEventArgs) HandlesMyBase.KeyDown
If e.KeyCode = 13 Then
SendKeys.Send("{TAB}")
EndIf
EndSub
Of course you still have to set the KeyPreview property on the form to True. I hope this is helpful!
Note: This code is for VB.Net
|
I want to thank you because I was looking for a solution to this problem and I used your suggestion and it works very well. Thanks again.
|