Enter replace Tab?

  • Thread starter Thread starter Mike Chan
  • Start date Start date
M

Mike Chan

Can I make the program when user press "Enter" which will act as "Tab" go to
next control?
 
Hi,


Set the forms keypreview property to true.

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown

If e.KeyCode = Keys.Enter Then

Me.SelectNextControl(Me.ActiveControl, True, True, True, True)

End If

End Sub



Ken
 
Back
Top