TextBoxBase.ClearUndo Method ()


Clears information about the most recent operation from the undo buffer of the text box.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member ClearUndo : unit -> unit

You can use this method to prevent an undo operation from repeating, based on the state of your application.

The following code example uses TextBox, a derived class. It provides Click event handlers for MenuItem objects that perform Cut, Copy, Paste, and Undo operations. This example requires that a TextBox control named textBox1 has been created.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top