Link to home
Start Free TrialLog in
Avatar of pbrooks
pbrooks

asked on

DblClick event for MaskEdBox

We need to detect when the user double-clicks on a Masked Edit box in VB 5.0.  Unfortunately, the MaskEdBox control does not have the DblClick event, nor the Click event (and we're puzzled as to why not).  Seeking help.  Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of bin_huwairib
bin_huwairib

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pbrooks
pbrooks

ASKER

Excellent!  This is exactly the answer I was looking for.  My hat's off to the expert  for a fast and accurate solution.

I have the same problem as pbrooks except that my masked edit box is on a UserControl instead of a Form.
I tried your answer but in the Select case I did not have access to the usercontrol (I wanted to call a sub on the usercontrol).

   Select Case uMsg
      Case WM_LBUTTONDBLCLK
          no access to UC
      Case Else

Any ideas?

If you do I can post a question so you can get points for your answer.