--- title: "How to: Provide Standard Menu Items to a Form" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "toolbars [Windows Forms]" - "menu items [Windows Forms], standard" - "ToolStrip control [Windows Forms]" ms.assetid: 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 control. There is extensive support for this feature in Visual Studio. Also see [Walkthrough: Providing Standard Menu Items to a Form](walkthrough-providing-standard-menu-items-to-a-form.md). ## Example The following code example demonstrates how to use a control to create a form with a standard menu. Menu item selections are displayed in a control. [!code-csharp[System.Windows.Forms.ToolStrip.StandardMenu#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.StandardMenu/CS/Form1.cs#1)] [!code-vb[System.Windows.Forms.ToolStrip.StandardMenu#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.StandardMenu/VB/Form1.vb#1)] ## Compiling the Code This example requires: - References to the System, System.Drawing and System.Windows.Forms assemblies. ## See also - - - - [MenuStrip Control](menustrip-control-windows-forms.md)