Reputation:
I have a win form, have some controls. I want to handle all keypress in the form keypress event. Is it possible without writing keypress for all the controls?
Upvotes: 0
Views: 199
Reputation: 36320
Setting the KeyPreview property of the form to True should enable this.
Upvotes: 2