想在第一個TextBox 輸入完資料後,按下Enter可進人下一個TextBox中
Public Class Form1
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
End Class
沒有留言:
張貼留言