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

Autohide empty toolbar

Thread ID:

Created:

Updated:

Platform:

Replies:

34703 Sep 14,2005 12:01 PM Sep 15,2005 08:00 AM Windows Forms 1
loading
Tags: Tools
Christian Rattat
Asked On September 14, 2005 12:01 PM

Hi, In my application I show and hide toolbar items depending of what functionality is available. In some cases it might happen that all items are hidden. In this case the toolbar remains empty and I would like to let the toolbar disappear in this case automatically. Is there an easy way to check either if the toolbar has a visible item or let the toolbar automatically hide when it is empty and to reappear when an item is shown again? I''m using SF Suite 3.0.1.0. Thanks in advance! Chris

Administrator [Syncfusion]
Replied On September 15, 2005 08:00 AM

Hi Chris, It is possible to hide the toolbar by using the following code snippet: foreach(BarItem baritem in this.bar2.Items) { if(baritem.Visible==true) { visible=true; } } mainFrameBarManager1.GetBarControl(bar2).Visible=visible; I have attached a sample that illustrates this. Let me know if this meets your requirements. We appreciate your cooperation. Regards, Ebenezer.P Toolbar_4166.zip

CONFIRMATION

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.

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.

;