Home All Groups Group Topic Archive Search About

Saving control settings

Author
4 Jun 2009 6:38 AM
John
Hi

How can I save settings of all controls on a form to an xml file using code?
There may be some container controls containing child controls on the form
too.

Many Thanks

Regards

Author
4 Jun 2009 6:54 AM
Cor Ligthert[MVP]
John,

With a lot of work, but you have first to design what settings.

Not every control has the same properties.

As it is to an XML file then an easy method is to create a dataset and to
read that with readXML and to write that with WriteXML

Be aware that this is old fashion already because since Framework 2.0 we
have the isolatedstorage

Cor

Show quoteHide quote
"John" <info@nospam.infovis.co.uk> wrote in message
news:uE8eT8N5JHA.480@TK2MSFTNGP06.phx.gbl...
> Hi
>
> How can I save settings of all controls on a form to an xml file using
> code? There may be some container controls containing child controls on
> the form too.
>
> Many Thanks
>
> Regards
>