I have a need to run different code when a user clicks or double-clicks an item in a VB6 ListBox control. When I click on the control, the Click event handler executes. However, I am finding that when I double-click on the control, both the Click and DblClick event handlers execute.
Anyone have a good solution for getting just the DblClick event handler code to run without the Click code being executed first?
Thanks in advance for any suggestions.
A slight hack, but you could use a Timer control and a boolean variable:
I’d recommend setting the timer interval to the Windows double click time setting, plus a bit (There should be a Windows API call that will give you this value).