System.Windows.Forms.Control.InitLayout Method

Called after the control has been added to another container.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected virtual void InitLayout ()

Remarks

The Control.InitLayout method is called immediately after adding a control to a container. The Control.InitLayout method enables a control to initialize its layout state based on its container. For example, you would typically apply anchoring and docking to the control in the Control.InitLayout method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0