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

IT618资讯网 提供服务端开发,前端开发,网页特效,热门开源系统研究,软件下载,站长建站,淘宝开店等学习资料.