Can I determine the difference between the Click and DblClickevents on the same control?

Clive Beaton
Clive Beaton used Ask the Experts™
on
Can I determine the difference between the Clickand DblClick events on the same control?  I would like to use them to do different things.  

Thanks in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Umar Topia.Net Full Stack Developer

Commented:
You can inrease the ClickCount in the CLick Event and check if it is 2 then it is a double click event otherwise it is a single click
I think you will have great difficuty in using both.
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
Top Expert 2007
Commented:
"Can I determine the difference between the Click and DblClickevents on the same control?"
Not easily.  I've seen a couple of tricks to do this, but I never found them reliable. And ... remember that double click 'speed' can be changed in the Mouse properties in Control Panel.

mx
Controls have both the OnClick and On Dbl Click events.   You can assign macros, code, and expressions on their use.   I have a user that double-clicks invoice amounts to automatically enter invoice amount - retainage in the check amount.  
This seems to work well in my installs   The control fiedl can be a button, text box, etc.
I would encourage the use of the ControlTip Text (in Other or All properties) to offer a constant reminder to the operator of the choices when they hover over the control.
Clive BeatonAccess Developer

Author

Commented:
You're both right.  Virtually impossible.

Thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial