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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Hide/Show a tool bar in code

Thread ID:





18370 Aug 29,2004 03:50 PM UTC Aug 29,2004 08:37 PM UTC WinForms 1
Tags: Tools
Luis Guerra
Asked On August 29, 2004 03:50 PM UTC

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

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon