title: Visual Studio My.Settings
body: <p>I'm having some issues with MySettings in Visual Studio.</p>
  
  <p>I set up some settings via the GUI (properties menu). Give them names and values. Everything is saved.</p>
  
  <p>Let's say I have a setting: SettingA, Value=123 (User settings)</p>
  
  <p>I go to display SettingA in a textbox on Formload, and nothing happens.
  I go to display SettingA in a messagebox on Formload, nothing happens.</p>
  
  <p>After the form loads up, if I code a button to display a setting in a textbox.... it does.</p>
  
  <p>If, in code, I change the value of a setting and save it. Then have it display in a textbox, it will show the proper value.</p>
  
  <p>If I close the app, and start it back up, it will either display nothing..or display an old value.</p>
  
  <p>If I physically change a setting's value myself via the Properties menu of the project, then go to try to get the new value to display on Formload, or via button click.....either nothing will happen or it will still display an older value.</p>
  
  <p>It seems that while the program is running, I can change values in code and have them display properly..whenever I want. After I close the program, I don't see any of the changes made in code reflect in the Properties menu.</p>
  
  <p>This is just making no sense to me. If I physically changed a value myself, why won't it display/why is it still display the old value?</p>
  
  <p>If I'm changing values in code, saving them in code, and then displaying them..why aren't they showing back in the Properties menu?</p>
  
  <p>It's like changes just aren't being fully committed...or they are being read from more than 1 location.</p>
  
  <p>Again, these are User settings.</p>
  
  <p>The only code I have been using really are things like:</p>
  
  <pre><code>txtPort.Text = My.Settings.Port
  
  My.Settings.Port = txtPort.text
  
  My.Settings.Save()
  </code></pre>
  
  <p>Not necessarily in that order..just showing what I'm using.</p>