02 June 2007

How to use the Settings class in C# - The Code Project - C# Programming

This article updates my knowledge of application settings in Visual Studio. The important points are:

* Settings can be directly accessed using early binding. The way to access it remains:

1. Set the reference to the proper namespace:
using [Assembly Name].Properties;
2. Refer to the property (substitute property name):
Settings.Default.PropertyName
3. Save the property:
Settings.Default.Save();

* Settings as the Application level are read only. Settings at the User level are read/write.