views:

280

answers:

1

I want to make it so that no matter which control has focus, it will do my event. So that I dont have to write a keydown event for all 137 of my objects. Is this possible?

Thanks

+4  A: 

You have to set the KeyPreview property of your Form to True.

When this property is set to true, the form will receive all KeyPress, KeyDown, and KeyUp events.

Meta-Knight