04-29-2020, 09:25 PM
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
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