nikolagj
September 23rd, 1999, 04:36 AM
The listview control provided with VB 6 does not have a dblclick event for list items.How can I add this event to the control (or otherways gain that functionality)?
|
Click to See Complete Forum and Search --> : Dblclick ListView Items nikolagj September 23rd, 1999, 04:36 AM The listview control provided with VB 6 does not have a dblclick event for list items.How can I add this event to the control (or otherways gain that functionality)? Matthias S September 27th, 1999, 07:44 AM The easiest way to do it is to do it like this I guess: In the dblclick event you check whether the selecteditem property of the listview equals Nothing. If so, exit (or do whatever pleases you) and if it is something, then you proceed the dblclick event on the selected item. Be carefull, I didn't check whether the doubleclick event is fired if you dblclick on the columnheaders, on the frame or on some empty space. If this all doesn't work you can try to use some API Functions to detect whether the mouse was over an listitem when doubleclicked. Hope that helps Best wishes, Matthias Steinbart codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |