Pressing Enter to behave like Tab

  • Thread starter Thread starter Savvas
  • Start date Start date
S

Savvas

Hi everyone,

A client wants to press enter to go from one textbox to the other
instead tab.

I have read what others have written in google groups but mostly is
asp.net.

Can anyone help me please?

I tried keypress event or the enter event but didnt manage.

Thanks in advance
Savvas
 
Thanks Lloyd,

I actually got around it with this code and it works.

Private Sub Form_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If Convert.ToInt16(e.KeyChar) = 13 Then
SendKeys.Send("{TAB}")
e.Handled = True
End If
End Sub
 
Back
Top