Is there another way to create the main menu in C# other than using MenuStrip?
It doesn’t looks similar to standard Explorer menu.
Am I doing something wrong here? I just want the standard app main menu, like the explorer one.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like you want a menu that respects the os theme. The MainMenu class will do this.
Right click on the toolbox and select “choose items”. Select the MainMenu class to add it to your toolbox (it will be added under the category you were ‘on’ when you selected choose items).
Note that the MainMenu derives from Component rather than Control so will not have full control capabilities and the api is a little clunky compare to the Toolstrip derived items api.
Note that there are other classes that were replaced by the ‘strip’ family of controls for context menus, toolbars and statusbars if you want also want versions of those controls that respect the os look and feel. These can also be added to the toolbox in the manner described above.