![]() |
|
Tutorial How to have a Context Menu / Main Menu Strip without the ".NET Look" - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: Tutorial How to have a Context Menu / Main Menu Strip without the ".NET Look" (/Thread-Tutorial-How-to-have-a-Context-Menu-Main-Menu-Strip-without-the-NET-Look--120212) |
How to have a Context Menu / Main Menu Strip without the ".NET Look" - miso - 04-30-2020 in my Source code packs i've released, there is a screenshot showing the Built-in Windows Context Menu even though the application has been made using the .NET Framework, why doesn't it look like this? ![]() but instead looks like this ![]() 1: Go in your ToolBox window and Right Click, select "Choose Items..." ![]() When you are in the "Choose Toolbox Items" dialog, make sure you're in the ".NET Framework Components", then type "MainMenu" (for the MenuStrip) and "ContextMenu" (for the context menu), then when you found them, make sure you tick both to be able to use them ![]() ![]() Close the dialog and your toolbox should've reloaded with the added items ![]() And here we go, you can now use the original Context Menu & MenuStrip of Windows Pros: - Looks more professional - Supports Shortcuts - Easy & Fast creation of Items Cons: - No Image Support - No Styling - Can only have MenuItems, there is no support for Textboxes PS: A good alternative is to use the default .NET MenuStrip and to change the RenderMode to System, it removes the gradient visible in the items & can still be restylished |