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

Serialize a UserControl

P: n/a
Hi, i got the following problem, i'm trying to serialize a usercontrol, but
when i run my rutine for serializing i run into the following error:

The type System.Windows.Forms.UserControl in Assembly System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is not
marked as serializable

What can i do??

Thanks.
Alex.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ale K. wrote:
Hi, i got the following problem, i'm trying to serialize a usercontrol,
but when i run my rutine for serializing i run into the following error:

The type System.Windows.Forms.UserControl in Assembly
System.Windows.Forms, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 is not marked as serializable

What can i do??

Thanks.
Alex.


Inherit from user control and mark it as serializable...

Tom Shelton
Nov 20 '05 #2

P: n/a
Did you implement ISerializable?
"Ale K." <_N******@AleK.com> wrote in message
news:eu*************@TK2MSFTNGP11.phx.gbl...
Hi, i got the following problem, i'm trying to serialize a usercontrol, but when i run my rutine for serializing i run into the following error:

The type System.Windows.Forms.UserControl in Assembly System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as serializable

What can i do??

Thanks.
Alex.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.