Configuration Files, Visual Studio.NET
Any .NET application can have a XML based configuration file. In Asp.NET this file is named web.config, and in Windows Form application, the configuration file should be named like Application.Exe.config
Explaining importance and using is out of scope of this post, for the time being, I just wanted to share my experience with the configuration file handling during Windows Form application development (to be exact during debugging)
If you need to use the configuration file with Windows Form application, use Add new item from the project menu, choose application configuration as the item type and name the file App.config, unlike Application.Exe.config. Now when you will debug the application, the Visual Studio will copy the App.config file automatically to the root of your application’s exe folder and will name it properly as well.
Don’t try to manually placing the config file in Bin\Debug or Bin\Release folder and running the application from Visual Studio, as it deletes the configuration file and if any App.config file is present in the project, it will copy it instead. I already have suffered doing so. J