473,234 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,234 software developers and data experts.

ListView Double Click not Firing

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
Nov 20 '05 #1
1 5290
This goes about the DataView, but I guess it's the same problem for your
double-click:
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q869q

Hope it helps you,

Pieter

"Tom" <Re**********@here.com> wrote in message
news:5e********************************@4ax.com...
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

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rodrigo | last post by:
I am developing a windows application, it has a listview, when i double click in the listview i can't do anything (p.e. press any button) unless i click in any where. Regards. Rodrigo.
1
by: Alex K. | last post by:
I am using combo box with DropDownStyle = simple. Tried to use double click event but it does not work. I've got this.comboItems.DoubleClick += new...
4
by: perspolis | last post by:
hi I manage a double click event in a combo box.. but this event doesn't fire ???? I don't know why??
1
by: active | last post by:
I've been working on a problem for a few days now. I do not get a Double-Click event fired for a ListView when I double click. I now find that if I double click with the right button it works OK....
0
by: Lloyd Sheen | last post by:
I am trying to do two things from a listview. First is on a double click to perform an action on the object which was double clicked. FullRowSelect is set to true for the Listview. Code for the...
3
by: Siv | last post by:
Hi, I have a ListView control in a Windows application, currently single clicking a customer name in this list, selects the customer and displays their details in text boxes to the right of the...
2
by: Siv | last post by:
Hi, I posted earlier in the week and no-one responded so i thought I would try again. My question is: I have a ListView control in a Windows application, currently single clicking a customer...
5
by: sethuganesh | last post by:
hi, i have created a sample window aplication in VB.NET.placed a listview component in the form ,written click and double click event for list view.But the events are not fired.is there any...
4
by: raaman rai | last post by:
i wanna know if listview have the item double click event procedure in vb. pls enlighten me
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.