Link to home
Start Free TrialLog in
Avatar of halfondj
halfondj

asked on

MDI form stays ontop but parent is still enabled

I have a MDI form with a child MDI form being displayed by a SDI application.  I have the MDI form ontop of all other forms working fine, but the SDI is still active [enabled] and I don't want the user to be able to close it without closing the MDI form first.

I tried disabling the SDI form before showing the MDI form with the vbModal parameter, then enabling it after the .Show call, but vbModal doesn't seem to work with MDI forms - I've read that too.

How can I get the SDI form to become disabled when the MDI form is active, then get enabled after the user closes the MDI form?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

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 halfondj
halfondj

ASKER

After confirming what you posted re:what I knew, I realized my problem.

Thanks.  All is now working!