Home All Groups Group Topic Archive Search About

Reload Configuration values

Author
29 Mar 2007 4:37 PM
Hey it's Filippo
Hi there,
I have an Windows application that on the maintenaince form allows the user
to chose certain values that I store on the app.config.

These values are stored on the
    <appSettings>
    <connectionSettings>

Currently when the user changes any of those values, I call
Application.ReStart() in order to reload those values.

Is there a cleaner way to simply reload the config values without
re-starting the application?

Filippo

Author
29 Mar 2007 6:36 PM
Kevin Spencer
This can be done rather easily by using User-scoped Application Settings.
See

http://msdn2.microsoft.com/en-us/library/8eyb2ct1.aspx

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
Networking Components, Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

Show quote
"Hey it's Filippo" <pandian***@hotmail.com> wrote in message
news:%23cUlcCicHHA.2268@TK2MSFTNGP02.phx.gbl...
> Hi there,
> I have an Windows application that on the maintenaince form allows the
> user to chose certain values that I store on the app.config.
>
> These values are stored on the
>    <appSettings>
>    <connectionSettings>
>
> Currently when the user changes any of those values, I call
> Application.ReStart() in order to reload those values.
>
> Is there a cleaner way to simply reload the config values without
> re-starting the application?
>
> Filippo
>
>
>

AddThis Social Bookmark Button