Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-mdi-form-with-menu-merging-and-toolstrip-controls.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.6 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Create an MDI Form with Menu Merging and ToolStrip Controls 03/30/2017
csharp
vb
toolbars [Windows Forms]
ToolStripPanel control [Windows Forms]
ToolStrip control [Windows Forms]
MenuStrip control [Windows Forms]
64992ed9-44af-4baf-b45f-863e6ab35711

How to: Create an MDI Form with Menu Merging and ToolStrip Controls

The xref:System.Windows.Forms?displayProperty=nameWithType namespace supports multiple document interface (MDI) applications, and the xref:System.Windows.Forms.MenuStrip control supports menu merging. MDI forms can also xref:System.Windows.Forms.ToolStrip controls.

There is extensive support for this feature in Visual Studio.

Also see Walkthrough: Creating an MDI Form with Menu Merging and ToolStrip Controls.

Example

The following code example demonstrates how to use xref:System.Windows.Forms.ToolStripPanel controls with an MDI form. The form also supports menu merging with child menus.

[!code-csharpSystem.Windows.Forms.ToolStrip.MdiForm#1] [!code-vbSystem.Windows.Forms.ToolStrip.MdiForm#1]

Compiling the Code

This code example requires:

  • References to the System.Drawing and System.Windows.Forms assemblies.

See also