Category / Section
How to set or get a WinForms Docking Manager AutoHide mode?
1 min read
AutoHideMode
The methods SetAutoHideMode and GetAutoHideMode are used to set and get the autohide state of the WinForms Docking Manager. Please refer the below code snippet which illustrates this.
C#
// Sets panel 1 as AutoHidden window dockingManager1.SetAutoHideMode(panel1, true); //false to remove autohiding //Gets the AutoHide state of panel1 MessageBox.Show("Panel1 is in AutoHide State:"+dockingManager1.GetAutoHideMode(panel1).ToString());
VB
' Sets panel 1 as AutoHidden window DockingManager1.SetAutoHideMode(panel1, true) 'false to remove autohiding. 'Gets the AutoHide state of panel1 MessageBox.Show("Panel1 is in AutoHide State:" & DockingManager1.GetAutoHideMode(Panel1).ToString())
Sample: https://help.syncfusion.com/support/samples/kb/Tools.Windows/TDAHMode/AHMode.zip
UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/auto-hide-window#auto-hide-programmatically