Tuesday, August 14, 2007

Settings.Settings .NET C#

I just learned the newest feature for adding configuration to .NET application (Console, Windows Forms, Web forms, ets.)

Settings.Settings are created when you start your application. This allows you to build out Settings that scope either the application or user. But the big question was how do you access them in the code.


Try this

Properties.Settins.Default.[Intellisense takes over and find your setting]

That easy.