Dynamically reload app.config

  • Thread starter Thread starter John
  • Start date Start date
J

John

Is there a way to dynamically reload the settings in an app.config XML file?

I have a small Windows app with a CONFIGURE menu item. Click the menu and
another form pops up and allows the user to change the location (path) of
certain files and/or dir paths.

All that works fine. However, when the user clicks on the submit button and
is taken back to the original form, the new settings don't appear until the
app is exited and restarted.

Thanks in advance,
John
 
I don't think this is possible out-of-the-box. So if you really want to use
it like this, you'll have to implement yourself...
 
* "John said:
Is there a way to dynamically reload the settings in an app.config XML file?

I have a small Windows app with a CONFIGURE menu item. Click the menu and
another form pops up and allows the user to change the location (path) of
certain files and/or dir paths.

All that works fine. However, when the user clicks on the submit button and
is taken back to the original form, the new settings don't appear until the
app is exited and restarted.

That's not the purpose of config files.

Configuration Management Application Block
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp>

<http://www.palmbytes.de/content/dotnetlibs/optionslib.htm>
 
Back
Top