Here is the code I\'m using:
private void SaveConfiguration()
{
if (txtUsername.Text != \"\" && txtPassword.Text != \"\")
{
Configura
When you run your application with F5,
bin or bin\Debug subdirectory of your source code directory,app.config is copied as yourexecutable.exe.config into that directory, andThus, your application uses the yourexecutable.exe.config in the bin or bin\Debug directory, and it is there that ConfigurationManager saves the changes, not in your source code directory. This won't be an issue after deploying your application, because then, changes will go to yourexecutable.exe.config in the deployment directory, which is what you want.