C# settings using ApplicationSettingsBase - roaming and common
- by Mark Pim
I'm using the Windows Forms Application settings architecture (or however you're supposed to refer to it) and am successfully saving user settings to AppData.
What I want to do is have some settings common to all users of a particular machine and some settings which roam with users across machines. For example I have some settings relating to a peripheral attached to the computer (model, settings etc.) and some user preferences like user interface colours.
The colours preferences should roam with the user, but the peripheral settings should stay on the local computer no matter who's logged on.
How can I mark these types of settings so that some get stored in /AppData/... and some in /AppData?
Note that I don't want Application level settings - each computer the app will be installed on will have different settings.
I'm targetting .Net 3.0 if that makes a difference.