We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to Hide/Show a tool bar in code

I would like to be able to hide or show a tool bar in code (the whole tool bar). I do not seem to be able to find how to do it. Can you help thanks luis guerra

1 Reply

AD Administrator Syncfusion Team August 29, 2004 08:37 PM UTC

Hi Luis, There are 2 approaches to hide a XPMenus.Bar : 1. Get the associated CommandBar object and set its Visible property to false CommandBar cmdbar = this.mainFrameBarManager1.GetBarControl(this.bar1); cmdbar.Visible = false; // true if you widh to show it 2. Set BarStyle without the BarStyle.Visible enumeration value bar1.BarStyle = BarStyle.AllowQuickCustomizing | BarStyle.DrawDragBorder; // | BarStyle.Visible if you wish to show it Please refer to the test sample attached that illustrates the above and let me know if this meets your requirements. Thanks for conisdering Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon