trap a keystroke at a top level form

i'm using VS2010, .net 4 and a winform application.
hi - I've written a user control that operates by trapping an up or down arrow keystroke. occasionally the user has to click off the control, which moves the focus away from the control and therefore no longer interprets the key stroke within the control. how do I capture the keystroke and pass it back to the control.
Who is Participating?
WayneATaylorConnect With a Mentor Commented:
Have a look at the KeyPreview property of the form.  Set this to true so that keyboard messages are received by the form before they reach any controls on the form.

You can manage it then at a form level.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.