Possible Duplicate:
Standard Windows menu bars in Windows Forms
I am using windows forms and when I use a MenuStrip item, I get something that looks like this:
Is it possible to use menu strips like the ones the system uses, like in Windows Explorer, or Firefox, for example:
with Windows Forms, or C# in general?
Try using a
MainMenuinstead of aMenuStrip. TheMainMenuwill pick up the underlying operating system’s current style, whereas theMenuStripdoes not. Even thoughMainMenuwas replaced withMenuStrip, it is still supported going forwards (according to the MSDN docs).MenuStripis rendered entirely in C# and does not use the current operating system’s styles, whereas theMainMenucontrol renders using the underlying OS API and does.MainMenumight not be in your toolbox. To add it, right click in the toolbox, select “Choose Items…” and then make sure the MainMenu item is checked.This article explains the differences between
MainMenuandMenuStripin more depth.