tianfeng0418 发表于 2006-7-18 10:28
listview 问题
vb.net 里面的listview,怎么样获取当前选中的行号.
dachouyu 发表于 2006-7-18 16:19
Dim a,i As Integer<BR> For i = 0 To Me.ListView1.Items.Count - 1<BR> If Me.ListView1.Items(i).Selected = True Then<BR> a = i + 1<BR> MsgBox("你选中了第" + CStr(a) + "行")<BR> End If<BR> Next
tianfeng0418 发表于 2006-7-18 19:18
<P>要这么复杂啊</P>
NET爱好者 发表于 2006-7-18 21:53
<P>就一句而已了。Me.ListView1.Items(i).Selected </P>
tianfeng0418 发表于 2006-7-19 11:37
i怎么样才知道呢,我就是要自动货的这个i
yz870735 发表于 2007-12-3 16:45
刚好用到`` 借用``
cherycool 发表于 2007-12-7 11:12
好
xinfresh 发表于 2007-12-7 14:05
For Each m As Integer In ListView1.SelectedIndices
Next
页:
[1]