views:

31

answers:

0

Hi All, I've a MDI application with a mainForm and a childForm with KeyPreview set to TRUE. Now in my childForm when I press a key, the program starts the event KeyPressed in both forms. Can I disable the event in the mainForm when the childForm is active?

What i want is thet: when the childForm is Active, only the event in the form should be triggered...

Best regards, Stefano