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

How to show or hide the buttons in the title bar of a particular docking window in WinForms Docking Manager?

Platform: WinForms |
Control: DockingManager |
Published Date: April 30, 2011 |
Last Revised Date: December 5, 2019

Change visibility of caption buttons

The Docking Manager 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

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.

 

UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/dock-window#change-visibility-of-caption-buttons

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

Live Chat Icon For mobile
Live Chat Icon