V
Vibhesh
Hello,
I have designed a form in C#. There are several controls
on the form. I want to trap all the events at the form
level before they are passed on to the controls.
For eg : Suppose there are two buttons on the form. At any
moment one of the two buttons will be focused. When I
press any key I want to perform some default processing at
the Form level before the events are caught by the Buttons.
I want something simillar to what PreTranslateMessage does
for CWnd in MFC.
Thanks.
I have designed a form in C#. There are several controls
on the form. I want to trap all the events at the form
level before they are passed on to the controls.
For eg : Suppose there are two buttons on the form. At any
moment one of the two buttons will be focused. When I
press any key I want to perform some default processing at
the Form level before the events are caught by the Buttons.
I want something simillar to what PreTranslateMessage does
for CWnd in MFC.
Thanks.