Click to See Complete Forum and Search --> : app.config help


Visslan
January 15th, 2009, 09:08 AM
Hi!

I want to have a app.config with multiple databaseinformation. So that the user can choose and save different databaseconnections. How can I do this?

dannystommen
January 15th, 2009, 09:39 AM
Right click on your project, add new item: Application Configuration File

This file will be automatically created and in the Properties folder now is a file named Setting.settings. By doubleclicking on this file, you can edit your configurations in designer.

You can retrieve this values by

Properties.Settings.Default.MySetting