2个回答
2014-03-20
展开全部
Private Sub Command1_Click() '上移
If List1.ListIndex = 0 Then
List1.ListIndex = List1.ListCount - 1
Else
List1.ListIndex = List1.ListIndex - 1
End If
End Sub
Private Sub Command2_Click() '上移
If List1.ListIndex = List1.ListCount - 1 Then
List1.ListIndex = 0
Else
List1.ListIndex = List1.ListIndex + 1
End If
End Sub
Private Sub Form_Load()
List1.List(0) = "1111"
List1.List(1) = "2222"
List1.List(2) = "3333"
List1.List(3) = "4444"
End Sub
If List1.ListIndex = 0 Then
List1.ListIndex = List1.ListCount - 1
Else
List1.ListIndex = List1.ListIndex - 1
End If
End Sub
Private Sub Command2_Click() '上移
If List1.ListIndex = List1.ListCount - 1 Then
List1.ListIndex = 0
Else
List1.ListIndex = List1.ListIndex + 1
End If
End Sub
Private Sub Form_Load()
List1.List(0) = "1111"
List1.List(1) = "2222"
List1.List(2) = "3333"
List1.List(3) = "4444"
End Sub
2014-03-20
展开全部
第2个按钮是下移.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询