System.Windows.Forms.TextBoxBase.Undo Method

Undoes the last edit operation in the text box.

Syntax

public void Undo ()

Remarks

This method will undo the last Clipboard or text change operation performed in the text box control if the TextBoxBase.CanUndo property returns true.

Note:

The TextBoxBase.Undo method does not work with the Control.KeyPress or Control.TextChanged events.

Requirements

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