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本回答被提问者采纳
相似回答