Export (0) Print
Expand All
Expand Minimize

Control.CreateControl Method

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

[Visual Basic]
Public Sub CreateControl()
[C#]
public void CreateControl();
[C++]
public: void CreateControl();
[JScript]
public function CreateControl();

Remarks

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.

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

Show:
© 2015 Microsoft