Results 1 to 4 of 4

Thread: MDI forms

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    MDI forms

    Hey,

    I have a mdi parent form.
    i also have 1 mdi child form that is always open.
    My problem is if another mdichild form opens up and is maximized, the first one is maximized as well.
    This is problematic when a child form is opened whose min and max buttons are disabled but it is still maximized.
    Is there a way to prevent that?

    Thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: MDI forms

    That's the way MDI works. Maybe your permanent window should be a modeless dialogue, like a pallette window, rather than an MDI child.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: MDI forms

    it can't be because if it was, maximizing it will cover the parent form's toolbar.
    damn.
    Don't anthropomorphize computers -- they hate it

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: MDI forms

    Basically you're abusing MDI. The "D" stands for "document". It was intended to enable you to display multiple documents within the same parent window. It sounds to me like your permanent window is not a document, thus it doesn't really belong within the MDI client area. It should be a modeless dialogue or a docked control/navigation panel within the parent form itself. Obviously we don't have all the details of your app but you're trying to make your forms do something that MDI was never intended to do.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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