
!!!!HELP!!!! How to handle mouse inputs at form level ??
Quote:
>Greetings !
>Is there a way to process all the mouse inputs (clicks/moves etc) at the form
>level rather than at the control level ? You can do this for the keyboard inputs
>using the KeyPrevew property.
>Specifically, I want to process the mouseup event that occurs in any control on
>my form in the Form_MouseUp event procedure instead of Control_MouseUp event
>procedure. One way is to be dumb and call Form_MouseUp event procedure in every
>control's mouseup event procedure.
>Is there any way to avaoid this duplication ?
>I appreciate your input and usefull insights.
>thanks
>mahesh
Go ahead and write the code you want at the form level. In each of the
controls that support mouse_xxx events, insert the line
FormName_MouseMove
That will just cascade the mouse movement from the control to the
form. Hope that takes care of your problem!
David Whitney