123
123

Reputation: 5824

Alternative ContextMenuStrip

I would like to be able to change the style of the ContextMenuStrip currently available in .NET, I've always found it very ugly.

For example, this is the one in the Framework:

enter image description here

And I would like to use this system-style menu in my program:

enter image description here

Is there any way I can use the normal context strip in a managed app?

Upvotes: 0

Views: 749

Answers (1)

digEmAll
digEmAll

Reputation: 57220

Try to use the old ContextMenu control, e.g.

ContextMenu menu = new ContextMenu();
menu.MenuItems.Add("Hello");
menu.MenuItems.Add("-"); // yes, this makes a separator !!!
menu.MenuItems.Add("World");

Image:

enter image description here

Upvotes: 2

Related Questions