This documentation is archived and is not being maintained.

Control.CreateControl Method

Forces the creation of the control, including the creation of the handle and any child controls.

[Visual Basic]
Public Sub CreateControl()
public void CreateControl();
public: void CreateControl();
public function CreateControl();


The CreateControl method forces a handle to be created for the control and its child controls. This method is used when you need a handle immediately for manipulation of the control or its children; simply calling a control's constructor does not create the Handle.


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 | Handle | HandleCreated | Controls | IsHandleCreated