By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

serialization of custom controls

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Jan Warning" <ja*********@wanadoo.nl> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
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
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.