Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7745101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:55:44+00:00 2026-06-01T09:55:44+00:00

This is for C# and I am working in a Windows 7 environment with

  • 0

This is for C# and I am working in a Windows 7 environment with Visual Studio Express 2010.
I have an application where I have a toolstripcontainer dock set to fill so users can add toolstrips on any edge. The problem was that the toolstripcontainer has covered the that I want to use for holding sub-windows. The primary form containing the toolstripcontainer has been set as an mdi parent.
I found this article useful in getting the sub-windows into the container:
How to uses a ToolStripContainer whith Dock=Fill on a MDI parent?

However, sub-windows done in this way don’t seem to behave as they should in the ‘native’ MDI environment. The boarders look as though the windows 7 Aero effect has been disabled and minimising the sub-window makes it disappear entirely.

Essentially I want an MDI area for sub-windows surrounded by toolstrip docking areas.

Thanks a lot for your help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:55:45+00:00Added an answer on June 1, 2026 at 9:55 am

    Unfortunately, the ToolStripContainer control was not meant to work with an MDI form.

    Try using the ToolStripPanel control instead. It doesn’t work too well in the designer (which is probably why it isn’t in the ToolBox by default).

    Example:

    public partial class Form1 : Form {
    
      public Form1() {
        InitializeComponent();
    
        this.IsMdiContainer = true;
        ToolStripPanel leftPanel = new ToolStripPanel() { Dock = DockStyle.Left };
        ToolStripPanel topPanel = new ToolStripPanel() { Dock = DockStyle.Top };
        this.Controls.Add(leftPanel);
        this.Controls.Add(topPanel);
    
        ToolStrip ts = new ToolStrip() { Dock = DockStyle.Fill };
        ToolStripButton tsb = new ToolStripButton("Test", SystemIcons.Application.ToBitmap());
        ts.Items.Add(tsb);
    
        topPanel.Controls.Add(ts);
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have test this code on my development environment (windows 7, visual studio 2010)
My environment consists of Visual Studio 2010 and Windows 7 a few months ago
I am working on a mobile application in .NET. This is a windows mobile
I have an asp.net / C# web application running in a Windows environment. The
I'm confused about getting Qt working with Visual Studio Express. Most of the searches
My application is working fine in a Windows environment, but when I'm trying to
Ok, this is working on windows. My Java app is running and functioning normally
I'm working with Windows CE 5 and, before realizing that this was the wrong
I'm trying to get this accurate timer working on VS2008, on Windows XP (and
I have this function working <script type=text/javascript> $(window).scroll(function() { if ($(window).scrollTop() == $(document).height() -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.