|
-
Dec 3rd, 2003, 01:52 PM
#1
Thread Starter
Addicted Member
listview click event [RESOLVED]
How do you write the SelectedIndexChanged code to give the index of the item selected?
Last edited by GSIV; Dec 3rd, 2003 at 08:00 PM.
-
Dec 3rd, 2003, 02:03 PM
#2
Addicted Member
Private Sub ComboBox1_SelectedIndexCahnged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
Dim i as integer
i=ComboBox1.SelectedIndex
MsgBox(i & " is the selected index")
End Sub
-
Dec 3rd, 2003, 06:09 PM
#3
Thread Starter
Addicted Member
I guess what I really need is a doubleclick event for my listview...
something to show the index of the item that is double clicked.
BTW, thanks for the reply hole-in-one.
-
Dec 3rd, 2003, 06:37 PM
#4
Addicted Member
This will work:
Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick
Dim i As Integer
i = ListView1.SelectedIndices.Item(0)
MsgBox(i & " is the selected index")
End Sub
-
Dec 3rd, 2003, 07:59 PM
#5
Thread Starter
Addicted Member
Thanks again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|