Home All Groups Group Topic Archive Search About

A Way for saving control with all of it's components and properties to a file or stream.

Author
16 Jun 2010 11:56 AM
Mr. X.
Hello.
Is there any way to save a control + all of it's components to a file (or
give it some representation as a long string).

Thanks :)

Author
16 Jun 2010 12:20 PM
Mr. Arnold
Mr. X. wrote:
> Hello.
> Is there any way to save a control + all of it's components to a file
> (or give it some representation as a long string).
>
> Thanks :)

A control is an object with properties. You save the properties of the
object to a XML file manually. You instantiate the control/object (new),
and you populate the control/object from the XML file that represents
the controls properties. XML is string.
Author
16 Jun 2010 5:00 PM
Cor Ligthert[MVP]
http://msdn.microsoft.com/en-us/library/aa289499(VS.71).aspx

Show quoteHide quote
"Mr. X." <nospam@nospam_please.com> wrote in message
news:e6zSMsUDLHA.3776@TK2MSFTNGP04.phx.gbl...
> Hello.
> Is there any way to save a control + all of it's components to a file (or
> give it some representation as a long string).
>
> Thanks :)
>
Author
16 Jun 2010 6:20 PM
Onur_Güzel
On Jun 16, 2:56 pm, "Mr. X." <nospam@nospam_please.com> wrote:
> Hello.
> Is there any way to save a control + all of it's components to a file (or
> give it some representation as a long string).
>
> Thanks :)

Maybe you're looking at object serialization to save a serializable
object on the disk. This search may lead you to start:

http://www.google.com/search?hl=en&client=firefox-a&hs=5Ad&rls=org.mozilla%3Atr%3Aofficial&q=vb.net+object+serialization&aq=f&aqi=g-c1&aql=&oq=&gs_rfai=

HTH,

Onur Güzel