Undo/Redo Capable TextBox (winforms)

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 »

Advertisements

Simple Text-Only WebBrowser

This is a continuation of my previous article:
Add Undo/Redo or Back/Forward functionality to your application

In the last article we constructed a class that would help us add Undo/Redo or Back/Forward functionality to our application. We read about the capabilities of the class, but a working example was missing.
In this article we will see how to create a text-only web browser for ourselves. These kinds of browsers are useful in various situations. However I won’t go into details about that at present.
The link to source code as well as executable file is given at the end of this article.
So, first we will create the basics of the web-browser, and then later on we will see how to add the Back/Forward capabilities to it. … Read the full article »

Add Undo/Redo or Back/Forward Functionality to your Application

I have often seen people asking on various forums how to implement Undo/Redo functionality or Back/Forward functionality in their applications. Typically an undo/redo in text-editors or back/forward in file/folder explorers or customized webbrowsers are common examples.

So today we will see how to develop a class to implement such functionality. … Read the full article »