BCGControlBar Library for .NET
DockControl(Control,DockStyle,Rectangle,Control,Boolean,Boolean) Method




A control to be docked.
The dockStyle of the docking control
The rectangle on which the control should be docked.
The control to which the specified control should be docked.
Specifies if the focus will be set to the docking control.
Specifies that the control should be docked out of others docking control, near the border of the form.
Docks the specified control within the parent form.
Syntax
'Declaration
 
Public Overloads Function DockControl( _
   ByVal control As Control, _
   ByVal dockStyle As DockStyle, _
   ByVal rectDock As Rectangle, _
   ByVal controlTarget As Control, _
   ByVal setFocus As Boolean, _
   ByVal outerEdge As Boolean _
) As DockingPane
'Usage
 
Dim instance As DockManager
Dim control As Control
Dim dockStyle As DockStyle
Dim rectDock As Rectangle
Dim controlTarget As Control
Dim setFocus As Boolean
Dim outerEdge As Boolean
Dim value As DockingPane
 
value = instance.DockControl(control, dockStyle, rectDock, controlTarget, setFocus, outerEdge)
public DockingPane DockControl( 
   Control control,
   DockStyle dockStyle,
   Rectangle rectDock,
   Control controlTarget,
   bool setFocus,
   bool outerEdge
)
public: DockingPane* DockControl( 
   Control* control,
   DockStyle dockStyle,
   Rectangle rectDock,
   Control* controlTarget,
   bool setFocus,
   bool outerEdge
) 
public:
DockingPane^ DockControl( 
   Control^ control,
   DockStyle dockStyle,
   Rectangle rectDock,
   Control^ controlTarget,
   bool setFocus,
   bool outerEdge
) 

Parameters

control
A control to be docked.
dockStyle
The dockStyle of the docking control
rectDock
The rectangle on which the control should be docked.
controlTarget
The control to which the specified control should be docked.
setFocus
Specifies if the focus will be set to the docking control.
outerEdge
Specifies that the control should be docked out of others docking control, near the border of the form.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DockManager Class
DockManager Members
Overload List

Send Feedback