On Keypress not working

imperator

Archaeologist etc.
Local time
Today, 22:08
Joined
Feb 28, 2004
Messages
38
Hi All
I have two forms using the On Keypress event, one works fine, the other doesn't respond yet the code is identical. I have debugged but it simply doesn't fire when a key is pressed on the faulty form.

My gut feeling is there is nothing wrong with the code (after all it works on the other form) so does anyone know what may stop On Keypress from working? Perhaps a form property? A default value? Anything.

Hope you can help.
Ray
 
Make sure that the Formevent KeyPreview is set to Yes. Should be the last form event

JR
 
Make sure that the Formevent KeyPreview is set to Yes. Should be the last form event

JR

Thank you JANR. Problem solved. :)
 

Users who are viewing this thread

Back
Top Bottom