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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

<b>How can I hide/show the buttons in the title bar of a particular docking window? </b>

 

DockingManager has 6 methods for the manipulation of the buttons displayed in Title bar

SetCloseButtonVisibility(Control crtl,bool visibility) : Used to show/hide the close button in the title bar of the particular window.

GetCloseButtonVisibility(Control crtl) : Returns a bool value according to the visibility of close button

SetAutoHideButtonVisibility(Control ctrl,bool visibility) : Used to show/hide the Autohide button in the title bar of the particular window.

GetAutoHideButtonVisibility(Control crtl) : Returns a bool value according to the visibility of AutoHide button

SetMenuButtonVisibility(Control ctrl,bool visibility) : Used to show/hide the menu button in the title bar of the particular window.

GetMenuButtonVisibility(Control crtl) : Returns a bool value according to the visibility of menu button

The Following code Demonstrate the Usage Of these methods

C#

// Hide the Close button in the Tittle Bar for gradientLabel1 Control

this.dockingManager1.SetCloseButtonVisibility(this.gradientLabel1, false); //true to show again

' Gets the visibility of menu button in the title bar of gradientLabel1 Control.

this.dockingManager1.GetCloseButtonVisibility(this.gradientLabel1) //true is button is visible.false otherwise.

VB

' Hide the Close button in the Tittle Bar for gradientLabel1 Control.

me.dockingManager1.SetCloseButtonVisibility(me.GradientLabel1, False); 'True to show again.

' Gets the visibility of menu button in the title bar of gradientLabel1 Control.

me.dockingManager1.GetCloseButtonVisibility(me.GradientLabel1) //True is button is visible.False otherwise.

Article ID: Published Date: Last Revised Date: Platform: Control:
1505 04/30/2011 07/10/2014 WinForms DockingManager
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to 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