Using Application Settings and User Settings
Starting with the .NET Framework 2.0, you can create and access values that are persisted between application execution sessions. These values are called settings. Settings can represent user preferences, or valuable information the application needs to use. For example, you might create a series of settings that store user preferences for the color scheme of an application. Or you might store the connection string that specifies a database that your application uses. Settings allow you to both persist information that is critical to the application outside the code, and to create profiles that store the preferences of individual users.
The topics in this section describe how to use settings at design time and run time.
In This Section
Explains how to use Visual Studio to create a new setting for an application.
Describes how to use Visual Studio to change the value of an existing setting.
Details how to change the value of a setting in a compiled application between application sessions.
Describes how to use code to read settings with C#.
Explains how to use code to write and save the values of user settings with C#.
Details how to add multiple sets of settings to an application with C#.