How to auto hide a control when an application loads

9 Dec 2019 / 1 minute to read

A control can be auto hidden on loading, by enabling the AutoHideOnLoad property through designer or by calling SetAutoHideOnLoad method programmatically.

Method Description
SetAutoHideOnLoad AutoHides the docked control when the application loads. The parameters are,

Ctrl

- Indicates the docked control.

bautohide

- Value indicating `true` or `false`.
this.dockingManager1.SetAutoHideOnLoad(this.listBox1, true);
Me.DockingManager1.SetAutoHideOnLoad(Me.ListBox1, True)