南山月嫂公司kingbebe:[VB]关于textbox的小问题

来源:百度文库 编辑:高考问答 时间:2024/07/11 06:16:57
我在一个textbox(0)里面
怎么才能实现一下功能
在textbox(0)里面敲入一个回车,textbox(1)获得焦点

Private Sub Textbox_KeyPress(Index As Integer, KeyAscii As Integer)
If Index=0 and KeyAscii = 13 Then
KeyAscii = 0
Textbox(1).SetFocus
End If
End Sub