Control.CreateControl Method
This page is specific to:.NET Framework Version:
.NET Framework Class Library
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

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View