DataBinding to Application Settings

DataBinding to Application Settings

Application settings control custom data such as connection strings or user preferences on the client computer. You can bind application settings to properties on your forms in Visual Studio 2005 in a manner very similar to setting up data bindings. Application settings use data binding architecture to provide two-way communication of settings updates between the settings object and components. If you use Visual Studio to create application settings and assign them to component properties, these bindings are generated automatically.

An application setting is represented in an application by a property in a wrapper class derived from ApplicationSettingsBase. You can bind an application setting to most any component that supports the IBindableComponent interface, and you can bind multiple properties to a single setting. The application settings architecture is used within both ASP.NET and Windows Forms, and it contains a number of base classes that are shared across both environments.