How to display a Windows 7 style context menu?

Context menus

In my .NET applications, context menus look like left-handed menus.

How can I apply Windows 7 style to them to make them look like the right one?

+5
source share
1 answer

Right-click on the toolbar, select "Elements". Check "ContextMenu" with the name Namespace = System.Windows.Forms and Directory = Global Assembly Cache.

This .NET 1.x component is different from ContextMenuStrip, it uses its own Windows menus. You will lose some opportunities, I doubt that you do not care. You will need to write a line of code to assign the menu, the designer only allows you to set the ContextMenuStrip property. Add this construct to the constructor, for example:

    public Form1() {
        InitializeComponent();
        this.ContextMenu = contextMenu1;
    }
+8
source

All Articles