Called after the control has been added to another container.
[Visual Basic]
Protected Overridable Sub InitLayout()
[C#]
protected virtual void InitLayout();
[C++]
protected: virtual void InitLayout();
[JScript]
protected function InitLayout();
Remarks
The InitLayout method is called immediately after adding a control to a container. The InitLayout method allows a control to initialize its layout state based upon its container. For example, you would typically apply anchoring and docking to the control in the InitLayout method.
Notes to Inheritors: When overriding InitLayout in a derived class, be sure to call the base class's InitLayout method so that the control is displayed correctly.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
Control Class | Control Members | System.Windows.Forms Namespace | Anchor | Dock | Layout