Version

ContainerControl Property

Container control whose child controls are arranged by the layout manager.
Syntax
'Declaration
 
Public Property ContainerControl As Control
public Control ContainerControl {get; set;}
Remarks

The ContainerControl is used to determine whose controls will be arranged by the component. The layout manager will arrange all the controls within the specified control unless the SetIncludeInLayout has been invoked with a value of false to indicate that a particular control should not be affected by the layout manager.

At designtime, all controls within the specific container control will have 3 additional properties - IncludeInLayout, MinimumSize, and PreferredSize. At runtime, you can access the values of these using the corresponding get/set methods (e.g. to access the IncludeInLayout value, you can use the GetIncludeInLayout and SetIncludeInLayout.

Note: This property must be set in order for the component to know which controls to arrange. In addition, the component only manages the direct children of the container control. It does not arrange any controls within those controls.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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