Saturday, May 15, 2010

Capturing keyboard events in a form

When wishing to capture a keyboard event in winforms, one might encounter a problem that although you can register to capture the keyboard events, the events don't reach the parent form.

The simplest way is to override ProcessCmdKey and processing the message it receives.

I wonder this is so...

No comments:

Post a Comment