For reference:
toolbar.Settings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False
Did I miss something or is this the way things suppose to work when AllowCustomize = "False"?
The AllowCustomize settings determines whether the user is allowed to customize the tools within the toolbar, not the visibility of the toolbar, so this is normal behavior. And the reason you cannot get the toolbar back is probably because it is the only toolbar on the form and when it is hidden, there is no dock area to right-click on to bring up the toolbar list. It sounds like you want to use AllowHiding instead. Try settings that to False and it should remove the toolbar from the list of toolbars for customization.
Seems like the AllowCustomize is still unresponsive.
I have the following settings, but when I run the application the user can still right click on the toolbar and open the 'Customize' window.
this.tUltraToolbarsManager1.ToolbarSettings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False;
foreach (UltraToolbar toolbar in tUltraToolbarsManager1.Toolbars) toolbar.Settings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False;
I want to turn off tool bar customization by user, how is that possible ?
-Ishpal.
Set RuntimeCustomizationOptions to None on the UltraToolbarsManager
that seems to work.
Thanks very much
That works for me, too. Personally, I think that full dock-ability and customization should be false by default, but RuntimeCustomizationOptions is the property that can totally kill the customization menu. This is on the manager, not the toolbar, so if you want one toolbar to be customizable and another not, then you need different managers.