M Mike Chan Feb 3, 2004 #1 Can I make the program when user press "Enter" which will act as "Tab" go to next control?
K Ken Tucker [MVP] Feb 4, 2004 #2 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
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