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>

Platform: WinForms |
Control: DockingManager |
Published Date: April 30, 2011 |
Last Revised Date: July 10, 2014

 

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.

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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