Reputation: 1970
I've got a .NET MDI (multiple document interface) application that I want to use draggable ToolStrip controls. I want the ToolStrip controls to be at the top of my MDI form (just under the menus). When I use the standard ToolStripContainer inside the MDI form I can't show just the top docking strip, it always shows the center content panel and that hides and child forms in my MDI application. I tried setting the ToolStripContainer docking to "top" (instead of "fill") but the content panel is still shown and it doesn't resize correctly when I have multiple lines of ToolStrip controls.
Is there a way to hide the content panel of the ToolStripContainer so it plays nice in an MDI form? If not, how do I get draggable ToolStrip controls in an MDI form? It would seem like draggable ToolStrips in MDI applications would be a common request.
Upvotes: 1
Views: 1244
Reputation: 1970
I found the solution! There is a control that is not listed in the Toolbox by default that does exactly what I want. It is the System.Windows.Forms.ToolStripPanel control.
Upvotes: 1