Catch Key Down Event anywhere on Windows Form

B

Ben

Hi

I would like to complete a task whenever F4 is pressed by the user anywhere
on a form.

The problem is the Key Down event does not fire for the form if the user is,
for example within a text box. Is there any method of doing this other than
adding the code to the key down event for all controls?

Thanks
B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top