Is it possible to move between textboxes using the <Enter> Key
instead of the Tab Key? (As in VB6)
Printable View
Is it possible to move between textboxes using the <Enter> Key
instead of the Tab Key? (As in VB6)
key events mate. sample is the keydown
VB Code:
Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Enter Then TextBox2.focus() End If End Sub
Hi,
No beep !!!
Code:Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtùí_ôøèéí.KeyPress
If Asc(e.KeyChar) = 13 Then
e.Handled = True
SendKeys.Send("{TAB}")
End If
thanks yulyos
;)