--- title: "How to: Create an MDI Form with Menu Merging and ToolStrip Controls" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "toolbars [Windows Forms]" - "ToolStripPanel control [Windows Forms]" - "ToolStrip control [Windows Forms]" - "MenuStrip control [Windows Forms]" ms.assetid: 64992ed9-44af-4baf-b45f-863e6ab35711 --- # How to: Create an MDI Form with Menu Merging and ToolStrip Controls The namespace supports multiple document interface (MDI) applications, and the control supports menu merging. MDI forms can also controls. There is extensive support for this feature in Visual Studio. Also see [Walkthrough: Creating an MDI Form with Menu Merging and ToolStrip Controls](walkthrough-creating-an-mdi-form-with-menu-merging-and-toolstrip-controls.md). ## Example The following code example demonstrates how to use controls with an MDI form. The form also supports menu merging with child menus. [!code-csharp[System.Windows.Forms.ToolStrip.MdiForm#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.MdiForm/CS/Form1.cs#1)] [!code-vb[System.Windows.Forms.ToolStrip.MdiForm#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.MdiForm/VB/Form1.vb#1)] ## Compiling the Code This code example requires: - References to the System.Drawing and System.Windows.Forms assemblies. ## See also - [ToolStrip Control](toolstrip-control-windows-forms.md)