System.Windows.Forms.TextBoxBase.Clear Method

Clears all text from the text box control.

Syntax

public void Clear ()

Remarks

You can use this method to clear the contents of the control instead of assigning the TextBoxBase.Text property an empty string.

Requirements

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