Click to See Complete Forum and Search --> : modal in MDI


February 3rd, 2000, 08:35 AM
In VB, MDI child forms cannot be shown as Modal. why??
Is there a way around this?

Nick A.
February 3rd, 2000, 08:43 AM
Assuming you want them to be Application-Modal and not System-Modal, the only way to do it (that i know) is to disable all MDIChild forms that have been opened so far (Form.Enabled=False) and then open the form you want. Then in each form's Unload event, Re-Enable the last form that was opened before the one you are closing.

Not a very elegant way but it works.

I have some code for this but i have to search. Just let me know if you want it.

Nick A.
February 3rd, 2000, 08:45 AM
As for the WHY-part of your question.....

Ask uncle Bill. I had the same question sometime ago until i got tired to wait for an answer and emulated it. :)