Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How about this?

 

Private Sub ListView1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick

 Dim index As Integer
 Dim item As ListViewItem

 item = ListView1.SelectedItem
 index = item.Index

 'OR

 For Each item As ListViewItem in ListView1.SelectedItems
   index = item.Index
 Next
End Sub

"Never ascribe to malice that which can adequately be explained by incompetence." -- Napolean Bonaparte

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...