VB.NET listview控件checkbox被选中时,如何返回选中行的索引
环境:vs2005 .net2.0 wince5.0
问题:另listview控件中checkbox=true,前面会出现复选框,我想要选中复选框时,返回当前选中行的索引,请教各位怎么做。
[解决办法]
Dim str As String = ""
For i As Integer = 0 To ListView1.Items.Count - 1
If ListView1.Items(i).Checked = True Then
str += ListView1.Items(i).Index & "|"
End If
Next
MsgBox(str)