7,763
社区成员
发帖
与我相关
我的任务
分享
Option Explicit
'放一个text1,其index属性设置为0
Private Sub Form_Load()
Dim i As Long
For i = 1 To 20
Load Text1(i)
Next i
For i = 0 To 20
Text1(i).Left = 0
Text1(i).Top = i * 500
Text1(i).Visible = True
Next i
End Sub
Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
On Error Resume Next
Text1(Index + 1).SetFocus
End Sub