serialization of custom controls

J

Jan Warning

I have an application that displays custom controls.
I want to serialize/deserialize these controls.
However, the serialization fails because all controls derive from
System.Windows.Forms.Control which is not serializable.

How can I solve this?

Thanks in advance, Jan Warning
 
D

David Lee Conley

Jan Warning said:
I have an application that displays custom controls.
I want to serialize/deserialize these controls.
However, the serialization fails because all controls derive from
System.Windows.Forms.Control which is not serializable.

How can I solve this?

Thanks in advance, Jan Warning

According to Steve Hoag, Visual Studio Team Microsoft Corporation February
2002:

"Likewise, serialization cannot be used for forms because a form is derived
from the System.Windows.Forms.Form class, which is not attributed as
Serializable. In order to persist the properties of a form, you must use
either Dynamic Properties or registry entries."

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top