KeyDown event

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

A

Hi,
When I have a blank form and I create a KeyDown event
the keyDown event works fine (fires). However, as soon as
I drop a button on a form it looks like the button has the
focus and the keDown doesn't work.
How do u set the focus to the form?

thanks,
A
 
Hello,

A said:
When I have a blank form and I create a KeyDown event
the keyDown event works fine (fires). However, as soon as
I drop a button on a form it looks like the button has the
focus and the keDown doesn't work.
How do u set the focus to the form?

Set the form's KeyPreview property to True.

HTH,
Herfried K. Wagner
 
Back
Top