mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 07:56:06 +02:00
* 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.5 KiB
1.5 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||
|---|---|---|---|---|---|---|---|---|---|
| How to: Provide Standard Menu Items to a Form | 03/30/2017 |
|
|
75db9126-e70c-4e81-921d-b83c0a4a9f50 |
How to: Provide Standard Menu Items to a Form
You can provide a standard menu for your forms with the xref:System.Windows.Forms.MenuStrip control.
There is extensive support for this feature in Visual Studio.
Also see Walkthrough: Providing Standard Menu Items to a Form.
Example
The following code example demonstrates how to use a xref:System.Windows.Forms.MenuStrip control to create a form with a standard menu. Menu item selections are displayed in a xref:System.Windows.Forms.StatusStrip control.
[!code-csharpSystem.Windows.Forms.ToolStrip.StandardMenu#1] [!code-vbSystem.Windows.Forms.ToolStrip.StandardMenu#1]
Compiling the Code
This example requires:
- References to the System, System.Drawing and System.Windows.Forms assemblies.