DockingBehavior Enumeration
Collapse the table of content
Expand the table of content

DockingBehavior Enumeration


Specifies how a control should be docked by default when added through a designer.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum DockingBehavior

Member nameDescription

Prompt the user for the desired docking behavior.


Set the control's Control.Dock property to DockStyle.Fill when it is dropped into a container with no other child controls.


Do not prompt the user for the desired docking behavior.

The DockingBehavior enumeration is used by the System.Windows.Forms.DockingAttribute class.

The SplitContainer and WebBrowser controls are set to AutoDock. The DataGridView control is set to Ask.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft