Alan

Alan

  • NA
  • 17
  • 0

Object Serialization

Jul 13 2005 11:01 AM
First Post - Hi,
 
Would welcone some help here please.
 
I have read a few tutorials on serilization and seems OK -  BUT I do not seem to be able to serialize any Form Objects eg Buttons, TextBoxes etc, which is the very reason I want to use it ;-))
 
I manage to compileOK but the farthest I get is the following
"
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll
 
Additional information: The type System.Windows.Forms.Button in Assembly System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as serializable.
"
 
However the Class they are in is marked, and if I try to mark the objects themselves it says I cant do it!
 
Would really appreciate any help out there.
 
Many Thanks
 
Alan