|
-
Dec 12th, 2007, 03:36 AM
#1
How to customise settings in a windows service...?
I have written a windows service that does a few simple tasks.
I would like to customise some properties for this service, that can be changed at runtime at a later date.
What's the best way to go about this?
I am thinking that by adding a form and a systray icon to my windows service I can popup a settings form when clicking on the systray icon.
This form would then alloow me to customize data...but where to save? Config file? Registry?
Any best practises on this?
Woka
-
Dec 12th, 2007, 04:05 AM
#2
Re: How to customise settings in a windows service...?
I assume that you have the systray and form running under a different context (user) interacting with the service so I would say a config file definately but it should be stored in the appdata folder if the settings are user specific. If not then of course a public location. Avoid the registry IMO.
Woof!
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|