S
Sammy
Hi,
I want to make the enter key function like the tab key in WinForms. I used
to do it in VB6 using the code below:
If KeyAscii = 13 Then ' The ENTER key.
SendKeys "{tab}" ' Set the focus to the next control.
KeyAscii = 0 ' Ignore this key.
End If
I understand how to use the SendKeys class in .Net however not how to test
for the enter key. Also I am wondering if there is a better way to do this
in .Net.
SendKeys.Send("{Tab}");
Thanks
I want to make the enter key function like the tab key in WinForms. I used
to do it in VB6 using the code below:
If KeyAscii = 13 Then ' The ENTER key.
SendKeys "{tab}" ' Set the focus to the next control.
KeyAscii = 0 ' Ignore this key.
End If
I understand how to use the SendKeys class in .Net however not how to test
for the enter key. Also I am wondering if there is a better way to do this
in .Net.
SendKeys.Send("{Tab}");
Thanks