Hi Eric,
You can set Visible property of the command properties to false. This way the command still will be in the toolbar Commands collection, but it will be invisible.
For example if you want to hide File -> New menu item and New command in the toolbars you can do the following:
NMenuBar
mainMenu = (NMenuBar)nDiagramCommandBarsManager1.Toolbars["Main Menu"];mainMenu.Commands[1].Commands[0].Properties.Visible =
false;NDockingToolbar toolbar = nDiagramCommandBarsManager1.Toolbars["Standard"];NCommand c = toolbar.Commands[1];c.Properties.Visible =
false;nDiagramCommandBarsManager1.Refresh();
I hope this helps.
Regards,
Angel Chorbadzhiev.