Assume that, a win form has certain input fields and user enters/re-enters some data.
How to retain data previously entered by \'undo\' operation?
Just I wan
I'm not sure if WinForms/.Net has some type of built-in Undo feature that you can take advantage of. But what you are really looking for is a Stack datastructure to help you manage a list of actions. You'll need to create some type of "action" object to represent the actions that a user could do and as they progress through the application you'll need to push these actions onto the Stack. When they hit the undo button, or Ctrl-Z or whatever method of initiating the undo action you'll pop off the current action and restore the application state to the previous action.
This is a very basic and high level overview of how this would work but I imagine that implementing such a feature can get quite complex. Just imagine how it needs to work for a program like Adobe Photoshop. :O