Export (0) Print Expand All  How to: Create Application Settings
In the following procedure, you manually create a wrapper class
that derives from ApplicationSettingsBase. To this class you add
a publicly accessible property for each application setting that
you want to expose.  You can also perform this procedure using
minimal code in the Visual Studio designer. Also see How to:
Create Application Settings Using the Designer.  To create new
Application Settings programmatically    1. Add a new class to
your project, and rename it. For this procedure, we will call
this class MyUserSettings. Change the class definition so that
the class derives from ApplicationSettingsBase.    2. Define a
property on this wrapper class for each application setting you
require, and apply that property with either the
ApplicationScopedSettingAttribute or UserScopedSettingAttribute,
depending on the scope of the setting. For more information
about settings scope, see Application Settings Overview. By now,
your code should look