Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2114
Display-Hide toolbars when Swithching tabs
posted

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...

I see there is a Visible property on the toolbar, but this however leaves user to be able to add the toolbar by rightClicking on the toolbar space....

Parents
No Data
Reply
  • 48586
    posted

    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.

     

Children
No Data