is there a missing line why the new values were not save to app.config?

vb Code:
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>  
  3.   <appSettings>
  4.     <add key ="defaultuser" value ="Test"/>
  5.     <add key ="defaultpass" value ="1234abcd"/>
  6.   </appSettings>
  7. </configuration>


vb Code:
  1. ConfigurationManager.AppSettings.Item("defaultuser") = userNameTextBox.Text.ToString
  2.         ConfigurationManager.AppSettings.Item("defaultpass") = passwordTextBox.Text.ToString