View Single Post
 
Old July 25th, 2007, 04:32 AM
Thearon's Avatar
Thearon Thearon is offline
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

In Visual Studio 2005, Microsoft has made it easier to add and retrieve application settings. You should add new application settings by double clicking on "My Project" in the Solution Explorer. This should bring you to the Settings tab so you can add new application settings.

You can retrieve those settings in code by using the My namespace. For example, in my project I store the form size in an application setting called FormSize. To retreive this size in code I use: My.Settings.FormSize.

I hope this helps.

Thearon