Results 1 to 4 of 4

Thread: MDI container & toolstrip question

  1. #1

    Thread Starter
    Lively Member swingyswongy's Avatar
    Join Date
    Jun 2010
    Location
    Bay area, CA
    Posts
    83

    MDI container & toolstrip question

    So currently i have been working on a application that is a MDI parent, with child forms. I use a un docked toolstrip as a toolbox since i like the small icons and mouse hover, but one issue that bugs me is that when a child form is open in the parent form it's "under" the tooltrip. For example moving childform1 pass the toolstrip menu makes the form go under rather ontop. Is there anyway to give the child forms foreground when moving?
    thanks

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

    Re: MDI container & toolstrip question

    No there isn't. When you set IsMdiContainer to True for a form, notice how it turns grey? That's because an MdiClient control is added to the form and it's inside that that your child forms are hosted. The ToolStrip must be either in front of the MdiClient or behind it. If it's behind it then you won't see ToolStrip and if it's in front then it's in front of everything the MdiClient contains, i.e. the child forms. It's not possible to host the ToolStrip in the MdiClient so you're out of luck. If you dock the ToolStrip then the MdiClient will resize to occupy the remaining space.
    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
    Lively Member swingyswongy's Avatar
    Join Date
    Jun 2010
    Location
    Bay area, CA
    Posts
    83

    Re: MDI container & toolstrip question

    yeah that makes sense, i guess ill just put the toolbox in a form and it will solve my problems.

    Question; can you make a child form load at a specific cordinate? ex 500, 800

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

    Re: MDI container & toolstrip question

    Just like any form, set the StartPosition to Manual and then set the Location.
    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