"Kenneth H. Young" <Ke***@8gt.sytes.net> wrote in message
news:Oz**************@TK2MSFTNGP09.phx.gbl...
What is the proper way to open a form to read and write to the
app.config xml file in a Windows service since services are not intended
to have any GUI feed back?
You don't need a Form just to access values in App.Config.
The same code will work perfectly well in a Service. However ...
App.Config is /not/ intended for storing anything that wasn't put
there by the /compilation/ process - it's not a local "ini" file that
you can just drop things into as your program is running.
1) Create you own [xml] file to hold the options and read/write
/that/ to your heart's content.
2) Write a separate WinForms application to maintain this file,
/and/ have the Service "keep an eye" on the file, so that it can
reload the values within it if and when the file gets changed.
HTH,
Phill W.