[求助]看看这个问题
有一个列表框,下面一个按钮,怎样实现单击按钮,然后列表框自动指向下一条?也就是说按钮相当于一个向下键,各位大哥大姐帮帮忙!
Dim a As Integer
Private Sub Command1_Click()
a = a + 1
If List1.ListIndex = List1.ListCount - 1 Then
a = 0
End If
List1.ListIndex = a
End Sub
Private Sub Form_Load()
a = -1
For i = 0 To 10
List1.AddItem "aaaaaaaaaaaaaaaa" & i
Next
End Sub