| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How to: Join ToolStripPanels |
03/30/2017 |
.net-framework |
|
article |
|
|
4eadda6d-e3b8-4151-aaf2-a8d564fbe6b3 |
8 |
dotnet-bot |
dotnetcontent |
wpickett |
How to: Join ToolStripPanels
You can join xref:System.Windows.Forms.ToolStrip controls to a xref:System.Windows.Forms.ToolStripPanel at run time, which provides the flexibility of multiple-document interface (MDI) applications.
Example
The following code example demonstrates how to join xref:System.Windows.Forms.ToolStrip controls to a xref:System.Windows.Forms.ToolStripPanel.
[!code-csharpSystem.Windows.Forms.ToolStrip.Misc#11] [!code-vbSystem.Windows.Forms.ToolStrip.Misc#11]
Compiling the Code
This example requires:
- References to the System.Design, System.Drawing, and System.Windows.Forms assemblies.
For information about building this example from the command line for [!INCLUDEvbprvb] or [!INCLUDEcsprcs], see Building from the Command Line or Command-line Building With csc.exe. You can also build this example in [!INCLUDEvsprvs] by pasting the code into a new project. Also see How to: Compile and Run a Complete Windows Forms Code Example Using Visual Studio.
See Also
xref:System.Windows.Forms.ToolStrip
xref:System.Windows.Forms.ToolStripPanel
How to: Use ToolStripPanels for MDI