Link to home
Start Free TrialLog in
Avatar of davoman
davomanFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Key strokes on MDI parent forms

Hi there

I have an MDI parent form i want to capture key strokes for

basically if they press ESC i want the prent to run the code and not on any of the child forms that my be open

fundementally i want the user to be able to press escape and close the parent down

is this possible

cheers
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amyhxu
amyhxu

That works. Just a complement, also do the same thing on your parent form.
Avatar of davoman

ASKER

just as an aside if, i want other key presses to be picked up by the child form, will that still be allowed
Yes.

The code only does anything at all if it is the Escape key which is pressed

Roger
Avatar of davoman

ASKER

thanks for the help