CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: modal in MDI

  1. #1
    Guest

    modal in MDI

    In VB, MDI child forms cannot be shown as Modal. why??
    Is there a way around this?


  2. #2
    Join Date
    Dec 1999
    Posts
    128

    Re: modal in MDI

    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.

  3. #3
    Join Date
    Dec 1999
    Posts
    128

    Re: modal in MDI

    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.

    -------------------------
    Nick A.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured