System.Windows.Forms.Control.CreateHandle Method

Creates a handle for the control.

Syntax

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

Remarks

You typically should not call the Control.CreateHandle method directly. The preferred method is to call the Control.CreateControl method, which forces a handle to be created for the control and its child controls when the control is created.

Requirements

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