AutoHidePanel is the control that internally DotNetBar creates when it needs to display the bars in auto-hide state (AutoHide=true).

The AutoHidePanel is responsible for the appearance of the bars while they are in auto-hide state. It displays them as tabs and it is responsible for the fly-out behaviour when user hovers the mouse over the tabs on the AutoHidePanel or when user clicks the tab to display the bar.

Sometimes you needed to access the AutoHidePanel objects from code to change some of the properties it exposes, like the time-out of the fly-out bar or whether the bars are shown when mouse hovers over the tab on the AutoHidePanel.

Since AutoHidePanel is managed by DotNetBarManager and it is created on demand you cannot have “static” access to it.

Best way is to handle the Form.ControlAdded event and watch for the AutoHidePanel being added to the form. Once you see it, you can change it’s properties.

This sample project shows how to do that. It simply sets the EnableHoverExpand=false to disable the expanding of bars when mouse hovers over them.

Useful properties on AutoHidePanel object:

EnableHoverExpand – Gets or sets whether bars on auto-hide panel are displayed when mouse hovers over the tab.

AutoHideShowTimeout – Gets or sets the timeout in milliseconds for auto hide/show action. When timeout has elapsed and mouse has left the bar the bar will be automatically hidden. If mouse is hovering over the collapsed bar and timeout has elapsed the bar will be displayed.

ColorScheme – Gets or sets the ColorScheme object used by this panel. Default value is null which means that ColorScheme is
automatically created as specified by Style property. Note that if your DotNetBarManager has UseGlobalColorScheme set to true ColorScheme from DotNetBarManager will be used.

EnableFocusCollapse – Gets or sets whether bars that have focus are collapsed automatically or not.

Style – Gets or sets the style of auto-hide panel.

Related posts:

  1. How to create Dockable Windows
  2. Docking Concepts
  3. Changing DockContainerItem.Visible
  4. How To Access ExpandablePanel Title Bar Control
  5. Data Binding on undocked/floating Bars, dockable windows