假如有TextBox1和TextBox2平两个控件,请问要想实现在TextBox1中输完数字,按回车(Enter)键,光标自动停在TextBox2 上,要用什么事件呢?谢谢
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar = ChrW(13) Then TextBox2.Focus()
End If End Sub
就是这个办法好,谢谢你了,朋友