Hello
I know this an old post, but rather than creating a new thread I think its better to extend this one as the question is relted to the above subject as well.
The above mentioned method to pipe through the KeyPress events to the Parent works like a charm, but it gets rather painful when there are a lot of Dialogue forms in the application. I was wondering if there is a way to capture events globally within the application, such that the keypress events are also forwarded to the Parent form. Reason for having such a global control is that I will be having Dialogues generated by the Dialogues of the Parent form i.e. Dialogue in another layer of Dialogue like a grand child. It makes the events piping a little messy as I would have to attach listner for each instance.
I have searched this forum for an answer to my question but I could only find something that is related to global events listner from CodeProject:
http://www.codeproject.com/KB/cs/globalhook.aspx
I think it only send events to the application as a whole which means the events will go to the currently active Dialgue/Form and the parent Form in this case may not be the active Form. So is there any solution to my problem?