Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ToolStripPanel Class

Creates a container within which other controls can share horizontal or vertical space.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[ComVisibleAttribute(true)]
[ToolboxBitmapAttribute(typeof(ToolStripPanel), L"ToolStripPanel_standalone.bmp")]
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)]
public ref class ToolStripPanel : public ContainerControl, 
	IComponent, IDisposable

Use a ToolStripPanel to hold one or more ToolStrip, MenuStrip, StatusStrip or user-defined controls.

You might find that one or more ToolStripPanel controls meet the needs of your application better than a ToolStripContainer if you do not need the four panels and the central ToolStripContentPanel.

You can use only one panel if you so choose, and ToolStripPanel works well in Multiple Document Interface (MDI) scenarios.

Each ToolStripPanel is expandable and collapsible.

The following code example demonstrates how to use ToolStripPanel controls with a multiple document interface (MDI).

No code example is currently available or this language may not be supported.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft