Hi Ann,
In addition to what Miha had replied with, I found this thread that might be
of some assistance. I'm not sure if this is exactly what you want to do, but
it might be helpful.
http://www.dotnet247.com/247referenc...49/245285.aspx
What I usually do is create a ConfigSection and then deserialize it to a
class that implements System.Configuration.IConfigurationSectionHandler.
Then, when I want to update values to it, I update the class values.
Finally, I have the AppDomain.CurrentDomain.ProcessExit (you could also use
the Application.Exit or Application.ThreadExit events) wired up so that when
the application is about to exit, I serialize the running values in my class
back to the configuration file. It's not elegant, but it works and allows
for app options to be changed without the user having to restart the
application.
--
HTH
Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)
"Ann Marinas" <ma*******@hotmail.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
| Hi, all!
|
| I have a question regarding application config files.
|
| Is there a possibility that a value from the application config file can
be
| altered within the application itself?
|
| If so, how is is possible?
|
| thanks! :)
|
|