Forms keypress event not fired ???

G

Guest

dear all,

I manage to handle some code in any form controls keypress or down events
place.
In an other hand, the form_keypress event is not fired ?

Any reason why I cannot get this event fire when a ley_press handler routine
is define, is desable by default ?

regards
Serge
 
M

Morten Wennevik

Hi Serge,

Another control may be trapping the keypress events (typically a textbox
or even a button). Set your form's KeyPreview property to true to
overcome this.
 

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