Applies to: Nevron User Interface for .NET
How to disable customization features of the command bars?
The following code will disable any customization feature of the command bars:
[C#]
// disable the Customize dialog of the manager:
this
.nCommandBarsManager1.AllowCustomize =
false
;
// disable each toolbar’s Pendant command and permissions:
foreach
(NDockingToolbar tb
in
this
.nCommandBarsManager1.Toolbars)
{
tb.AllowHide =
false
;
tb.HasPendantCommand =
false
;
}
[VB.NET]
' disable the Customize dialog of the manager:
Me
.nCommandBarsManager1.AllowCustomize =
False
' disable each toolbar’s Pendant command and permissions:
For
Each
tb
As
NDockingToolbar
In
Me
.nCommandBarsManager1.Toolbars
tb.AllowHide =
False
tb.HasPendantCommand =
False
Next
Article ID: 106, Created On: 11/1/2010, Modified: 11/16/2010