471,627 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

config file change at runtime save??

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.

Jan 18 '06 #1
1 1865
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.

"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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.

Jan 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tim Blizard | last post: by
2 posts views Thread by MK | last post: by
1 post views Thread by Blue Man | last post: by
8 posts views Thread by Subra Mallampalli | last post: by
4 posts views Thread by keithb | last post: by
2 posts views Thread by Christian Muggli | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.