This section of MSDN provides a couple of examples:
http://msdn.microsoft.com/library/de...ngssection.asp
As I stated, for a DLL, you simply add your settings to your exe's
app.config file. The DLL itself will find them. For a DLL however I would
recommend using a Custom Configuration Section instead of appSettings
itself, more to prevent conflicts then anything.
Hope this helps
Jay
".NetHelpWanted" <sa******@gmail.com> wrote in message
news:0E**********************************@microsof t.com...
Do you have an example?
--
.NetHelpWanted
"Jay B. Harlow [MVP - Outlook]" wrote:
Tim,
In the DLL you can use the same function:
Configuration.AppSettings
The trick is that only EXE's can have app.config files, you would need
to add an app.config to the other application (exe), with the relevent
settings.
Hope this helps
Jay
"Tim Marsden" <TM@UK.COM> wrote in message
news:OA**************@TK2MSFTNGP10.phx.gbl... Hi
How do I manually read then values held in an app.config file.
I have an application with an application configuration file.
I can read the values in the file using Configuration.appsettings etc
and all is OK.
However I want to read the values from a DLL ( launched form another
application).
how do I do this?
Tim