System.Windows.Forms.Control.RecreateHandle Method

Forces the re-creation of the handle for the control.

Syntax

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

Remarks

The Control.RecreateHandle method is called whenever parameters are needed for a new control, but using a call from Control.UpdateStyles to Control.CreateParams is insufficient. This method also calls Control.DestroyHandle and Control.CreateHandle and sets Control.RecreatingHandle to true.

Requirements

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