Link to home
Start Free TrialLog in
Avatar of margajet24
margajet24Flag for Singapore

asked on

WinForm Serialization in C#

I would like to serialize my form which is inherited from Systems.Windows.Forms, but when I try to do it, an error occurs because the parent class is said to be not marked as Serializable.

My reason for doing this is that i want to save the whole state of my form including all the state and variables within my form.

How can I do this?.. please help me..
ASKER CERTIFIED SOLUTION
Avatar of ripahoratiu
ripahoratiu
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hart_henry
hart_henry

Question was not answered.  Author was looking for a way to serialize an entire form.  The answer only provide a way to serialize an object (ie: a Class of data), not the form or the controls on the form (including those that may not be serializable, such as buttons)