In a form I have some tabs (in a tabControl).
I need to change the toolbar list in dependence of the selected tab.
Some of toolbars linked with a tab should be not available when an other tab is active etc.
How can I "hide" from users tabs
I generate a _Toolbars As List(Of UltraToolbar)
then I
Me._ToolbarsManager.Toolbars.AddRange(Me._Toolbars.ToArray())
Now I tried to do the following when switching the tab
_ToolbarsManager.Toolbars.Clear() _ToolbarsManager.Tools.Clear() _ToolbarsManager.Toolbars.AddRange(newToolbarsList.ToArray)
but this does not work: from the ancient toolbars just dissapeared all the buttons but they didn('t dissapear.... and I didn't see any new toolbar appearing...
Hi,
I just wanted to know if you were able to solve your issue based on my suggestions or you still need help?
Just let me know.
Thank you.
Hello ,
Instead to add and remove toolbars from UltraToolbarsManager, you could hide, some of them, based on the active tab.
I have created a very basic sample to demonstrate this approach. Please run the sample and let me know if this is what you are looking for.
Please let me know if you have any further questions.