Hi guy,
Adding on to what everybody said, the application will read the
configuration settings only during the initial load. You will not be able to
re-load the settings from app.config after the application has been loaded -
you will have to restart the application.
The ConfigurationSettings class allows you to only read the settings. No
direct facility is provided by the framework to write to it. But this won't
be much tough to implement.
The foto Vision sample @ windowsforms.net has a settings writer which writes
to the file. Maybe you could get the sample and go thru the code for doing
this. The link is:
http://www.windowsforms.net/Applicat...=50&tabindex=8
HTH,
Rakesh Rajan
"guy" wrote:
That rang the bell and I remember using that file on a project some while
back. Can't you write from the app to that file? I thought you could.
Thanks guys
"Jochen Kalmbach" <no********************@holzma.de> wrote in message
news:Xn*********************************@207.46.24 8.16... HiBruno Jouhier [MVP],
It is the file called MyApplication.exe.config.
You forgot to mention, that you only can *read* from that file!
The OP also wants to save some settings...
--
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/