* 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
4.5 KiB
title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|---|
| MenuStrip Control Overview | 03/30/2017 |
|
|
f45516e5-bf01-4468-b851-d45f4c33c055 |
MenuStrip Control Overview (Windows Forms)
Menus expose functionality to your users by holding commands that are grouped by a common theme.
The xref:System.Windows.Forms.MenuStrip control was introduced in version 2.0 of the .NET Framework. With the xref:System.Windows.Forms.MenuStrip control, you can easily create menus like those found in Microsoft Office.
The xref:System.Windows.Forms.MenuStrip control supports the multiple-document interface (MDI) and menu merging, tool tips, and overflow. You can enhance the usability and readability of your menus by adding access keys, shortcut keys, check marks, images, and separator bars.
The xref:System.Windows.Forms.MenuStrip control replaces and adds functionality to the xref:System.Windows.Forms.MainMenu control; however, the xref:System.Windows.Forms.MainMenu control is retained for backward compatibility and future use if you choose.
Ways to Use the MenuStrip Control
Use the xref:System.Windows.Forms.MenuStrip control to:
-
Create easily customized, commonly employed menus that support advanced user interface and layout features, such as text and image ordering and alignment, drag-and-drop operations, MDI, overflow, and alternate modes of accessing menu commands.
-
Support the typical appearance and behavior of the operating system.
-
Handle events consistently for all containers and contained items, in the same way you handle events for other controls.
The following table shows some particularly important properties of xref:System.Windows.Forms.MenuStrip and associated classes.
The following table shows the important xref:System.Windows.Forms.MenuStrip companion classes.
| Class | Description |
|---|---|
| xref:System.Windows.Forms.ToolStripMenuItem | Represents a selectable option displayed on a xref:System.Windows.Forms.MenuStrip or xref:System.Windows.Forms.ContextMenuStrip. |
| xref:System.Windows.Forms.ContextMenuStrip | Represents a shortcut menu. |
| xref:System.Windows.Forms.ToolStripDropDown | Represents a control that allows the user to select a single item from a list that is displayed when the user clicks a xref:System.Windows.Forms.ToolStripDropDownButton or a higher-level menu item. |
| xref:System.Windows.Forms.ToolStripDropDownItem | Provides basic functionality for controls derived from xref:System.Windows.Forms.ToolStripItem that display drop-down items when clicked. |