小弟初学VB,请教各位这段代码是什么意思
Private Sub Text_1 KeyPress(Index As Integer, KeyAscii As Integer)
i = Index+1
If i >=6 Then i = 0
If KeyAscii = 13 Then
Text1(i).SetFocus
End If
End Sub
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
是不是有六个textbox作为一个控件组,然后按键盘上的键,按到回车的时候把焦点叫给i对应的那个textbox
Private Sub Text_1 KeyPress(Index As Integer, KeyAscii As Integer) 这句代码我想是你不小心打错了,应为: Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) 下面是解答你提出的问题: