Hi,
To execute only a specific command from the command bars manager, you can use the following code:
NDiagramCommandCollection commands = manager.Commander.Commands;
NDiagramButtonCommand command = (NDiagramButtonCommand)commands.GetCommandFromId((int)DiagramCommand.ShowLayoutDialog);
command.Execute();
Please, note that you should have previously created and attached a command bars manager to the drawing view like this:
manager = new NDiagramCommandBarsManager();
manager.View = m_View;
In this way, when you do not set the parent of the diagram command bars manager to be the current Windows form, the menus and the toolbars will not be shown and you will get exactly the functionality you require.
Best Regards,
Nevron Support Team