Private Sub AllTextBoxes_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) _ Handles TextBox1.KeyDown, TextBox2.KeyDown, TextBox3.KeyDown, TextBox4.KeyDown If e.KeyCode = Keys.Tab OrElse e.KeyCode = Keys.Enter Then e.SuppressKeyPress = True Me.ProcessTabKey(True) End If End Sub
No comments:
Post a Comment