Capturing Function keys in form

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

I turned on the KeyPressPreview property = true for the form, but the
KeyPress event doesn't raise when I press a Function key. How do I solve
this?
 
Hello,

Alex said:
I turned on the KeyPressPreview property = true for
the form, but the KeyPress event doesn't raise when I
press a Function key. How do I solve this?

Use the 'KeyDown' or 'KeyUp' event instead.
 

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

Back
Top