- Online Barcode Generator
- How To
- Buy Now
Auto Hide Windows in C# Windows Forms
Auto-Hide a DockPanel, Un-pin the ToolWindow by clicking the pushpin icon in the title bar. This will cause the ToolWindow to auto-hide at the edge of the Dock to which it belongs. The screen shots below show before and after un-pinning the panel.
How to Show and Pin Hidden Dock Panel
When we need to show the hidden dock panel and pin it, we can hover the mouse over the tab at the edge of the dock control to show the title of the tool window. It is able to slide out the tool window over the other panels. When users of the dock control move the mouse cursor over the tab, the panel will appear visibly, otherwise, will collapse to the state of un-pinned. Just hit the pin button, we can dock the hidden tab or panel.
Position of Hidden Panel
While using the dock control, the tool tab strip or tool window will collapse against to Top, Left, Bottom, or Right. The default setting of docking a tool window to the dock control is auto, which is determined by the property, the auto hide location included in the tool tab strip container. The tool window will collapse to the side that the tool tab strip is docked to the place related to the main container. Besides the default setting, users can easily configure a specific value to the auto hide location, which will collapse the tool window against the side you set instead of its default side.
Sizing Auto Hidden Windows
The default size to a tool window that is hidden automatically is of (180, 180) when using the dock WinForms control. It is also possible to configure the size to change the size of the tool window and the available property is the auto hide size. However, users need take into consideration that the height when hide the tool windows to top or bottom and the width when hide the tool window to right or left.
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls