I'm using VB5 and I would like to perform an action when the user clicks on a MaskEditBox control.
But this control doesn't have a click event!
Does anybody know how I can solve this problem?
Do I have to use API's or some other control?
Printable View
I'm using VB5 and I would like to perform an action when the user clicks on a MaskEditBox control.
But this control doesn't have a click event!
Does anybody know how I can solve this problem?
Do I have to use API's or some other control?
Wow!, that was a find.. no click event?!!
If have heard there is a new service pack for the Vb 5.0's version.. but i dont think there will be such a major change as to add a new event!
IF you notice it has no mouse events at all. no mousemove, no mouse down..
So only way out is Subclassing i think. After you subclass you can look for WM_MOUSEDOWN, followed by UP with in a certain interval of time, and region too.
Or you can look for WM_ACTIVATE with WA_CLICKACTIVE for wParam.
Try it. if it works / wont work let me know.
RK
Thank's for your reply
I'm afraid to loose time if I'm using the API because I'm not really an expert with API.
For the moment, I solve the problem by using the GotFocus event of the MaskEditBox.