Files
docs-desktop/dotnet-desktop-guide/framework/winforms/advanced/using-application-settings-and-user-settings.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

2.5 KiB

title, ms.date, description, helpviewer_keywords, ms.assetid
title ms.date description helpviewer_keywords ms.assetid
Using Application Settings and User Settings 03/30/2017 Learn how to use application settings and user settings to create and access values that are persisted between application execution sessions.
user settings [Windows Forms]
application settings [Windows Forms], how-to topics
54682d3b-1cbf-4683-9351-012b8b4286b5

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

How To: Create a New Setting at Design Time

Explains how to use Visual Studio to create a new setting for an application.

How To: Change the Value of an Existing Setting at Design Time

Describes how to use Visual Studio to change the value of an existing setting.

How To: Change the Value of a Setting Between Application Sessions

Details how to change the value of a setting in a compiled application between application sessions.

How To: Read Settings at Run Time With C#

Describes how to use code to read settings with C#.

How To: Write User Settings at Run Time with C#

Explains how to use code to write and save the values of user settings with C#.

How To: Add Multiple Sets of Settings To Your Application in C#

Details how to add multiple sets of settings to an application with C#.

See also