I'm trying to loop through all the controls on my forms, and set the mousemove event to call a function through code. I don't know if/how I can set the mousemove event to call a function, however. Is there a way to do this?
No, that's not possible because during runtime, when an event is triggered, control is passed directly to a routine (if it exists) called <ControlName>_<EventName>. That is the intrinsic architecture of the event handler.
Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
I think I found a way to do this. As opposed to directly trying to set the event procedure to call a function, I'm setting it to call a macro which in turn calls the function I need. This seems to work. Thanks again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.