Dot Net (.NET) Tricks


Adding Menu Items to the Window Menu(AKA System Menu)


There is no DotNet Native way to manipulate the Window Menu. You must do it all via InterOp.
You can add existing Menuitems though.


Office style Menu.


A complete ownerdraw menu class with RightToLeft support. Add this class to your project and after designing the layout of your standard menu, use search and replace to replace 'System.Windows.Forms.MenuItem' with 'MenuItemEx'. You will then be able to assign colors and icons to each menu item in the project. Use this class for MDI projects or download the MenuSkinner component in the Controls section. The MenuSkinner is much simpler to use but there is a problem with Menus that unMerge which I have yet to find a solution for.

Click to Show VB and C# code

No comments:

Post a Comment