Ozden,
I would try and use serialization to do this. You can use a
SoapFormatter to do this. The drawback to this is that the object has to be
marked as serialized. If this is not the case, you can try and use the
XmlFormatter. The drawback to this though is that it will only serialize
public properties, and some objects can not have their state fully restored
by just having the public properties set. For example, image data isn't
exposed publically (the raw bytes).
In these cases, you are going to have to serialize the data yourself in
some manner.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Özden Irmak" <oz********@isnet.net.tr> wrote in message
news:up**************@TK2MSFTNGP12.phx.gbl...
Hello,
I'm trying to save some properties of some windows controls into a XML
File.
Most of the properties work when I save them as String
(TypeConverter.ConvertToString). But some complex properties like image,
collections such as tabpage's cannot done with this method.
Anybody can help me on how to save and later restore the complex
properties?
Thanks in advance...
Regards,
Özden