Hi,

I have a rather unique problem here... but when do I not.

Assume an example where I have a listbox populated with items. When the mouse is DOWN I want to have the application wait x seconds until executing a function. However, if the mouse is released (UP) before the timer is complete, the function will not execute AND the listbox items can be selected as normal.

Not that difficult to do by declaring a public boolean as setting it's state with mouse events. But i am facing a problem, mouse performance is poor. Its as if the MouseUp event is not able to set the public var quick enough. Selecting the listbox items is slow.

I have attached an example. My example can be tested by selecting items in the listbox on the form. Notice the performance is poor. When the mouse is held down for half a second, a msgbox will be displayed.

Interested in seeing if anyone can help remedy my issue. Maybe there is a better way of "interrupting" this event.


InteruptMouseDownSample.accdb

Thank you