This is a continuation of my previous articles:
If you haven’t read the first part, I recommend you read that before continuing further, since we will be using the class we built there to our use in this demo.
In the first part we saw how to construct a class that can support undo/redo capabilities. In this article we will demonstrate its use by using a textbox. The normal windows forms TextBox has only one level of undo/redo capability which is no good for most situations. So let’s see what it would take to add proper undo/redo capabilities to the TextBox control.
The links to full source code and a demo executable can be found at the end of this article. … Read the full article »