Permalink
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (49 sloc) 3.31 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
ContextMenuStrip Control
03/30/2017
.net-framework
dotnet-winforms
article
jsharp
context menus
ContextMenuStrip control [Windows Forms]
shortcut menus
76e070b2-65d7-457f-8300-d104e4e01e5e
9
dotnet-bot
dotnetcontent
wpickett

ContextMenuStrip Control

The xref:System.Windows.Forms.ContextMenuStrip control provides a shortcut menu that you associate with a control.

In This Section

ContextMenuStrip Control Overview
Explains what the control is and its key features and properties.

How to: Associate a ContextMenuStrip with a Control
Describes making a xref:System.Windows.Forms.ContextMenuStrip the shortcut menu for a specific control.

How to: Add Menu Items to a ContextMenuStrip
Describes how to add selectable options to a xref:System.Windows.Forms.ContextMenuStrip.

How to: Configure ContextMenuStrip Check Margins and Image Margins
Describes how to customize a xref:System.Windows.Forms.ContextMenuStrip by setting check and image margin properties in various ways.

How to: Enable Check Margins and Image Margins in ContextMenuStrip Controls
Describes how to turn xref:System.Windows.Forms.ContextMenuStrip check margins on and off.

How to: Handle the ContextMenuStrip Opening Event
Describes how to customize the behavior of a xref:System.Windows.Forms.ContextMenuStrip control by handling the xref:System.Windows.Forms.ToolStripDropDown.Opening event.

Also see ContextMenuStrip Tasks Dialog Box or ContextMenuStrip Items Collection Editor.

Reference

xref:System.Windows.Forms.MenuStrip
Describes the features of the xref:System.Windows.Forms.MenuStrip class, which provides a menu system for a form.

xref:System.Windows.Forms.ContextMenuStrip
Describes the features of the xref:System.Windows.Forms.ContextMenuStrip, which represents a shortcut menu.

xref:System.Windows.Forms.ToolStripMenuItem
Describes the features of the xref:System.Windows.Forms.ToolStripMenuItem class, which represents a selectable option displayed on a xref:System.Windows.Forms.MenuStrip or xref:System.Windows.Forms.ContextMenuStrip.

Related Sections

Controls to Use on Windows Forms
Provides a complete list of Windows Forms controls, with links to information on their use.