So I just started reading about serialization of class and how I can save them into a binary file. But after I define my class as <serializable()> and try to save the object it keeps throwing me this exception.
"An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll
Additional information: Type 'System.Windows.Forms.CheckBox' in Assembly 'System.Windows.Forms, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable."
My class is about 1000 lines of code so I won't post it as it contains information from other modules so it will be hard to figure out what i'm doing. My class basically consists of dynamic labels, checkboxes and arrays of each labels and checkboxes. I have several functions and also added handlers for the array checkboxes and events for the checkboxes.
I'm not sure that because mostly all my controls are dynamic serialization won't work.Please help me out as this would be easier than manually trying to get all the information of class(object) 7 times.