We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The WinForms context menu component displays a list of shortcut options during user interactions such as a right-click mouse action.


Associating menu with other controls

You can easily add menus displaying appropriate shortcut options with any control.

Adding menus with other controls in Windows Forms context menu strip


Menu items support in Windows Forms context menu strip

Design experience

Allows users to add items to the menu effortlessly, creating either a simple or complex menu through designer or code-behind with a seamless navigation experience.


ToolStripMenuItem Types

Menu item support in Windows Forms context menu strip

The default option to select menu items displayed in the control.

Combo box support in Windows Forms context menu strip

Combo box

Displays a combo box in the menu item and behaves exactly in its native way.

Text box support in Windows Forms context menu strip

Text box

Displays a text box in the menu item and behaves exactly in its native way.

Separator support in Windows Forms context menu strip

Separator

A static line that groups menu items based on their behavior.


Display image in menu items

Images can be displayed along with text in the menu item, providing a rich look and feel.

Display image in menu items in Windows Forms context menu strip


Checked/unchecked menu items support in Windows Forms context menu strip

Checked/unchecked menu items

In order to indicate the state of the menu item, a check/uncheck option is provided.


Disabled menu items

Menu item view can be disabled easily if needed.

Disabled menu items in Windows Forms context menu strip


Header text support in Windows Forms context menu strip

Header text

Allows users to set relevant captions for the control. Usually the caption set will be displayed at the top of the control.


Runtime support

Auto close  support in Windows Forms context menu strip

Auto close

Let’s the context menu close automatically when users click on any other items in the window.

Tooltip support in Windows Forms context menu strip

Tooltip

Provides basic information about a menu item while hovering the mouse pointer over it.


Custom style and themes

Built-in themes  support in Windows Forms context menu strip

Built-in themes

The WinForms context menu control ships with built-in themes like Office 2016 - colorful, white, black, and dark grey along with Metro.

Custom style support in Windows Forms context menu strip

Custom style

Customize the appearance of the control to any extent programmatically.


Localization

Allows users to customize the text in the user interface based on the local culture.

Localization in Windows Forms context menu strip


RTL support in Windows Forms context menu strip

Right-to-left (RTL)

The text direction and layout of the control can be displayed in right-to-left (RTL) orientation.


WinForms ContextMenuStrip Code Example

Easily get started with the WinForms ContextMenuStrip using a few simple lines of C# code example as demonstrated below. Also explore our WinForms ContextMenuStrip Example that shows you how to render and configure the WinForms ContextMenuStrip.

using Syncfusion.Windows.Forms.Tools;
 public partial class Form1 : Form
    {
        private Syncfusion.Windows.Forms.Tools.ContextMenuStripEx contextMenuStripEx;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
        private System.Windows.Forms.RichTextBox richTextBox1;
        public Form1()
        {
            InitializeComponent();
            //Initializing
            this.contextMenuStripEx = new Syncfusion.Windows.Forms.Tools.ContextMenuStripEx();
            this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
            this.richTextBox1 = new System.Windows.Forms.RichTextBox();
            //Associate the context menu
            this.toolStripMenuItem1.Text = "New";
            this.toolStripMenuItem2.Text = "Copy";
            this.toolStripMenuItem3.Text = "Cut";
            this.contextMenuStripEx.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem1, this.toolStripMenuItem2, this.toolStripMenuItem3, });
            this.contextMenuStripEx.ResumeLayout(false);
            this.richTextBox1.ContextMenuStrip = this.contextMenuStripEx;
            this.Controls.Add(this.richTextBox1);
        }
    }



95+ WINDOWS FORMS CONTROLS

Frequently Asked Questions

You can find our WinForms ContextMenuStrip demo on

GitHub location.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version Download Free Trial

Syncfusion Windows Forms Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon
Live Chat Icon For mobile