I want to detect when there’s a mouse_down on any Frame on the Form while the mouse is still down. I know how to do it for a Click, but I want to catch it before mouse_up.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create a
_MouseDownevent handler for each frame on the form, or if you have many frames you can create a generic event handler classCreate a Class module (eg named
cUserFormEvents)Declare a collection for your Frames
Include this code in your form initialistion
Now,
Frme_MouseDownwill execute on MouseDown on any Frame on the form. Access the specific Frame withFrme