C# settings using ApplicationSettingsBase - roaming and common

Posted by Mark Pim on Stack Overflow See other posts from Stack Overflow or by Mark Pim
Published on 2010-06-13T10:18:11Z Indexed on 2010/06/13 10:22 UTC
Read the original article Hit count: 491

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms