ListView Double Click not Firing

T

Tom

Hi

I have a listview with an event for mousemove and double click. Since
implementing a handler for the mousemove event the double click event
never gets fired, can anyone tell me how i should implement both, so
that they both get fired correctly:

....

Private Sub ListView_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles ListView.MouseMove

Dim DragData As New DataObject(ListView.SelectedItem(0))
DoDragDrop(DragData, DragDropEffects.Link)

End Sub


Private Sub ListView_DoubleClick(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ListView.DoubleClick

'If nothing selected do nothing
If ListView.SelectedItems.Count = 0 Then Exit Sub

'Raise event for selected item
MsgBox(ListView.SelectedItems(0).Text)

End Sub

....

Thanks

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top