|
-
Mar 30th, 2002, 12:38 AM
#1
like this
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ListView1.View = View.List
Dim i As Integer
For i = 0 To 300
ListView1.Items.Add(i.ToString)
Next i
End Sub
Private Sub ListView1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.Click
MessageBox.Show(ListView1.FocusedItem.Index.ToString)
End Sub
I had to experiment a little but this pops up a message box with the index number of the item you click on.
hope this helps
-
Mar 31st, 2002, 03:56 PM
#2
Addicted Member
when the Listview isn't Multiselect this gives me an error...
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
|