I have a windows app and I want to serialize a Windows.Form object. I tried to serialize it using BinaryFormatter but I got SerializationException because the Windows.Form class is not marked as serializable
I've found a solution at www.codeproject.com/KB/dotnet/Surrogate_Serialization.aspx
. But it requires a lot of code to be written and it doesn't seem a good way.
So, is there a way to solve this problem or another approach to save the object permanently in HD
thanks in advance.