I want to know what is the easy way to develop an undo in c#
i have a windows form application, in the window i have a form with a lot of text box , select box , checkbox ...
after the user fill in and click on calculate button, then the program calculate according to all the inputs and return a value to the screen.
i search an easy way to save the states after every calculte , and give the user the abbility to return one, or more steps back .
thanks
I don't think there is any standard built-in, but you can find some frameworks to do it yourself: The Undo Framework with a sample for Forms: Samples for the Undo Framework
There is also the Monitored Undo Framework.