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
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
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
Have a nice day http://yulyos4vbnet.googlepages.com
thanks yulyos
Forum Rules