tags:

views:

81

answers:

2

Hi,

I have a parent form that contains a lot of controls. What I am trying to do is filter all of the key presses for that form. The trouble is that if the focus is on one of the controls on the form then the parent form is not getting the key press event, so how do I capture the key down event?

Thanks, R.

+6  A: 

Set KeyPreview to true on your form and you will catch them: MSDN

PoweRoy
A: 

This thread on MSDN might be useful.

esalaka