如题!不知道小弟表达得能不能理解
解决方案 »
- activeX dll 能不能读写vb主程序中的全局变量
- 用VB封装ASP的时候...为什么出错?
- 求给数组排序的算法或其它方法
- 如何向打开的Word文档中插入保存在文本文件中的VBA脚本,并运行它?
- 请教一下,ColVal = String(40, 0)是什么意思?在线等!!!
- winsck获得局域网的SQL Server列表
- x★★mscomm 把PortOpen=true 为什么报错误8012
- 关于精灵线程(请各位大侠们帮帮我,小弟在此多谢各位了!^0^)
- 这段代码有什么错?
- 好奇怪???谁来帮我抓鬼??
- 如何更改网络驱动器的卷标?
- 请教高人,vb制作标准dll是否有局限?局限是什么?为什么
'下一条
Private Sub Command1_Click()
If i >= 10 Then Exit Sub
List1.ListIndex = i
i = i + 1
End SubPrivate Sub Form_Load()
For i = 0 To 10
List1.AddItem i
Next
i = 0
End Sub
If List1.ListIndex + 1 = List1.ListCount Then
List1.ListIndex = 0
Else
List1.ListIndex = List1.ListIndex + 1
End If
End Sub
通过listbox的Selected属性实现。 Listbox.Selected(i) = True '选中第i项……
If List1.ListIndex + 1 >= List1.ListCount Then
List1.ListIndex = 0
Else
List1.ListIndex = List1.ListIndex + 1
End If
End SubPrivate Sub Form_Load()
Dim i As Long
For i = 0 To 9
List1.AddItem i
Next
List1.ListIndex = -1
End Sub
Private Sub Command1_Click()
List1.ListIndex = (List1.ListIndex + 1) Mod List1.ListCount
End SubPrivate Sub Form_Load()
Dim i As Long
For i = 0 To 9
List1.AddItem i
Next
List1.ListIndex = 0
End Sub