Respond to ANY mouse event ANYWHERE on a form with ONE sub routine
Posted on 2006-11-11
I need to respond to a mouse click anywhere on a form. I'm incorporating this into about 25 forms. I would like to create a sub routine that allows me to just paste into each one of them without having to customize for each form based on particulars of each form.
I've tried me.mousedown, me.click, mybase.click, mybase.mousedown
I have several group boxes on the form and I get no result when clicking anywhere inside the group boxes, but if I click outside of the group boxes mybase and me.click or .mousedown execute. Also, any of these forms may have text boxes, combo boxes, listviews, etc.
Is there ONE event that captures for any and all mouse activity throughout a form?