Hello

I wrote a little dialog-form and now I want to do something like this
When the user opens the form the actual state of the complete form and all its controls is saved into a variable of the form itself. The user probably manipulates some controls but then the user clicks on the "Cancel"-button. Now the old state should be restored
How can I achieve this type of serialization. (I don't want to save the state to a file)