Alan

Alan

  • NA
  • 17
  • 0

Object Serializatiion

Jul 13 2005 6:26 PM


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

Answers (2)