11智能在线
新记
VB问题: listbox已设置为多选,请问,vb如果 获得 listbox 选中的个数?
如题所述
举报该文章
其他看法
第1个回答 2012-05-29
Dim I As Integer,J As Integer
J=0
For I = 0 To List1.ListCount - 1
If List1.Selected(I) Then
J=J+1
End If
Next
最后J的值即为选中的个数
第2个回答 2012-05-29
List1.SelCount本回答被提问者采纳
相似回答
大家正在搜
相关问题
vb获取listbox中所有选中行的文本
VB listbox多选问题
VB 如何判断 ListBox 中的一个元素是否被选中
vb中如何修改一个listbox里面当前选中项的内容?(求要...
在vb界面设计中怎么实现多选的功能?listbox?list...
vb里的listbox设置了多选,现在想把选项的选中情况以0...
vb高手进, ListBox 怎样点击选中某一行啊??用那个...
用vb编程序 ,ListBox控件的Style属性已经设置为...