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.
Simple.
Try this
Properties.Settins.Default.[Intellisense takes over and find your setting]
That easy.
This blog shares my journey as a software engineer, along with personal reviews and life experiences I’ve gained along the way. “I have not failed. I've just found 10,000 ways that won't work.” — Thomas Edison. If you enjoy my content, please support it by clicking on ads (free for you, big help for me!) or by buying me a coffee on Ko-fi. Thank you!
Showing posts with label Settings.Settings. Show all posts
Showing posts with label Settings.Settings. Show all posts
Tuesday, August 14, 2007
Subscribe to:
Posts (Atom)