Help needed explaining very strange behaviour of KeyPressEventHand

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to capture when certain keys are pressed for my program. To begin
with, I used KeyPressEventHandler at dealt with the event as I got them.
Everything was fine but as soon as I added a button or a groupbox to my form
the KeyPressEventHandler just stopped working?!

Any help would be greatly appreciated.
 
You need to turn the form keypreview to true.

Form.KeyPreview

Chris
 

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