Hi,
You can implement the ISerializable interface and write your own
serialization/deserialization code. This will work for binary serialization.
For the XML one, there's an unsupported IXmlSerializable interface you can
still implement to add custom XML serialization to your control. There's a
good Aaron Skonnard's article on how this is done.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
<to*****@hotmail.com> wrote in message
news:09****************************@phx.gbl...
Is there anybody who can help me to serialize a control
like buttons, textbox, and each other control?I don't
want to inherit from some of those.I try with
SoapFormatter but it tell it can't serialize the control
because it doesn't have the [Serialized] attribute. After
I try with a XmlSerializer but it tells that it can't
serialize it.Anyone has some idea?