Files
docs-desktop/dotnet-desktop-guide/framework/winforms/advanced/how-to-create-a-new-setting-at-design-time.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

1.8 KiB

title, description, ms.date, helpviewer_keywords, ms.assetid
title description ms.date helpviewer_keywords ms.assetid
How To: Create a New Setting at Design Time Learn how to create a new Windows Forms setting at design time by using the Settings designer in Visual Studio. 03/30/2017
application settings [Windows Forms], design time
application settings [Windows Forms], creating
c5d60a66-6507-462f-a81f-e3bc0a804e16

How To: Create a new setting at design time

You can create a new setting at design time by using the Settings designer in Visual Studio. The Settings designer is a grid-style interface that allows you to create new settings and specify properties for those settings. You must specify Name, Value, Type and Scope for your new settings. Once a setting is created, it is accessible in code.

Create a new setting at design time in C#

  1. Open Visual Studio.

  2. In Solution Explorer, expand the Properties node of your project.

  3. Double-click the .settings file in which you want to add a new setting. The default name for this file is Settings.settings.

  4. In the Settings designer, set the Name, Value, Type, and Scope for your setting. Each row represents a single setting.

Create a new setting at design time in Visual Basic

  1. Open Visual Studio.

  2. In Solution Explorer, right-click your project node and choose Properties.

  3. In the Properties page, select the Settings tab.

  4. In the Settings designer, set the Name, Value, Type, and Scope for your setting. Each row represents a single setting.

See also