I want to apply some event to all objects in a WinForm. (I'll do WPF later, I want to do WinForms right now. )
Event I want to do is keyPress. One way to do this would be to have a function, and all objects call this function from their own function and send in object, and event. Is there any other way? Is there any shortcut?
What I'm trying to do is this. While I'm tying this post in a textbox, if I were to press "Ctrl+T", Firefox would open a new window. Basically, I want to add event only to the parent object, and all children would listen to that event (unless they have their own defined).
(Delegate stuff is new, so I still need to look into it "deeply.")