Articles in this section
Category / Section

How to show or hide the buttons in the title bar of WinForms Docking Manager?

2 mins read

Change visibility of caption buttons

The WinForms Docking Manager featuretour page 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


Conclusion

I hope you enjoyed learning about how to show or hide the buttons in the title bar of WinForms Docking Manager.

You can refer to our WinForms Docking Manager featuretour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WinForms Docking Manager demo to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied