In the KeyPress Event of TextBox1 , put this code . Number 13 is the ascii code for Enter Key , in case you don't know it already .
VB Code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Asc(e.KeyChar()) = 13 Then TextBox2.Focus() End If End Sub





Reply With Quote