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
 
Back
Top