-
Creating an UICommandBar [Janus UI and Ribbon Controls v3.5 for .NET]
The following code shows how to create a UICommandBar in code and placed on the Form.
In C#Janus.Windows.UI.CommandBars.UICommandManager commandManager = new UICommandManager();
//Assign the control in which the rebar containing the command bars will be placed
commandManager.ContainerControl = this;
UICommandBar commandBar = new Janus.Windows.UI.CommandBars.UICommandBar("Menu");
//Assign the UICommandManager that will hold the structure of the command bar.
commandBar.CommandManager = commandManager;
//Specify that the command bar should behave and look as a Menu
commandBar.CommandBarType = Janus.Windows.UI.CommandBars.CommandBarType.Menu;
In VB:Dim CommandManager As Janus.Windows.UI.CommandBars.UICommandManager = New UICommandManager()
'Assign the control in which the rebar containing the command bars will be placed
CommandManager.ContainerControl = Me
Dim CommandBar As UICommandBar = New UICommandBar("Menu")
'Assign the UICommandManager that will hold the structure of the command bar.
CommandBar.CommandManager = CommandManager
'Specify that the command bar should behave and look as a Menu
CommandBar.CommandBarType = Janus.Windows.UI.CommandBars.CommandBarType.Menu
Source Of Information : Janus v3.5 Help Files for VS 2008
Subscribe to:
Post Comments (Atom)
Custom UI CommandBar .NET control