|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Reload Configuration valuesHi 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 This can be done rather easily by using User-scoped Application Settings.
See http://msdn2.microsoft.com/en-us/library/8eyb2ct1.aspx -- Show quoteHTH, Kevin Spencer Microsoft MVP Printing Components, Email Components, Networking Components, Controls, much more. DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net "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 > > > |
|||||||||||||||||||||||