Nirmal
Nirmal

Reputation:

key press handler

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

Answers (1)

Rune Grimstad
Rune Grimstad

Reputation: 36320

Setting the KeyPreview property of the form to True should enable this.

Upvotes: 2

Related Questions