config file change at runtime save??

  • Thread starter Thread starter Iwan Petrow
  • Start date Start date
I

Iwan Petrow

Hi,

I have dynamic properties (for checkboxes Checked property which I use
in Option dialog box) . After I change checkboxes check properties I
use DOM to save the changed values in the config files (it works fine -
it changes the values). But if I reopen the option dialog (I create
new one and call ShowDialog) the values are the same at the beginning
(as if the config file hasn't been changed). Also if I restart the
application I have all checkboxes' checked properties set to true.

What is the problem?

Thanks.
 
Hi , again :)

You cannot change the config file at runtime, there is a good explanation
somewhere in the MSDN's blogs which I cannot find right now , will post it
later.

basically the config file is intented to be used as a global config , for
all users of the computer, if you need to store particular users config you
can store them in a file for each user, preferibly in his local folders.
The drawback is that you will need to process this file, not that it's a
big deal though, you could use a Hashtable and XML serialization which makes
it very easy to use

Maybe somebody else has a link to the article explaining this in details.
 
Back
Top