(1) Why?
Because I need to compare two forms with "equals" method.
My intent is to determine, every time, if a user modified the form, althoug
if he decided to change a data value and then undo the operation.
If I stored data in a struct when the users undo the operation the begining
struct and the newone will be equals.
So, I think, but i'm not sure, if I can have a deep copy of a form at the
begining with "equals" method I can know if someone has modified in some case
the form, also if the datas remain the same.
"Phill W." wrote:
Cecco (ITA) wrote:
I need to know if there's a way to serialize a windows form.
(1) Why?
Forms contain lots and /lots/ of data that you probably won't care about
when serializing it.
I included the [serializable()]/<serializablein the "myclassform" declaration, but I
declaration, but Ireceived an error because the windows.form class isn't marked
as serializable.
And there's probably a Good Reason for that (see (1)).
What are you trying to /achieve/?
If you want to save the Form's data then create a class to hold the data
and teach that class how to save (and reload) itself.
Regards,
Phill W.