* 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
1.9 KiB
title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|
| MainMenu Component Overview | 03/30/2017 |
|
|
b41cc5a3-cc59-4996-aa3c-8dd9c17d3c90 |
MainMenu Component Overview (Windows Forms)
Important
Although xref:System.Windows.Forms.MenuStrip and xref:System.Windows.Forms.ContextMenuStrip replace and add functionality to the xref:System.Windows.Forms.MainMenu and xref:System.Windows.Forms.ContextMenu controls of previous versions, xref:System.Windows.Forms.MainMenu and xref:System.Windows.Forms.ContextMenu are retained for both backward compatibility and future use if you choose.
The Windows Forms xref:System.Windows.Forms.MainMenu component displays a menu at run time. All submenus of the main menu and individual items are xref:System.Windows.Forms.MenuItem objects.
Key Properties
A menu item can be designated as the default item by setting the xref:System.Windows.Forms.MenuItem.DefaultItem%2A property to true. The default item appears in bold text when the menu is clicked. The menu item's xref:System.Windows.Forms.MenuItem.Checked%2A property is either true or false, and indicates whether the menu item is selected. The menu item's xref:System.Windows.Forms.MenuItem.RadioCheck%2A property customizes the appearance of the selected item: if xref:System.Windows.Forms.MenuItem.RadioCheck%2A is set to true, a radio button appears next to the item; if xref:System.Windows.Forms.MenuItem.RadioCheck%2A is set to false, a check mark appears next to the item.