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
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