title: Why does a simple ApplicationSetting PropertyBinding for a Form does not work in C#?
body: <p>My question involves this simple walkthrough shown in the article <a href="http://xldennis.wordpress.com/2010/03/19/preserve-size-and-location-of-windows-forms-part-i/" rel="nofollow noreferrer">Preserve Size and Location of Windows Forms – Part I</a> by Dennis Wallentin. </p>
  
  <p>This approach works 100% fine when using VB.NET. When using the same steps in C#, however, the settings within the Settings tab of the application's properties looks correct, and the app.config file looks right, but the values are not saved when you run it.</p>
  
  <p>The app.config file winds up looking like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;configSections&gt;
          &lt;sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" &gt;
              &lt;section name="WindowsAppCs.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /&gt;
          &lt;/sectionGroup&gt;
      &lt;/configSections&gt;
      &lt;userSettings&gt;
          &lt;WindowsAppCs.Properties.Settings&gt;
              &lt;setting name="Location" serializeAs="String"&gt;
                  &lt;value&gt;0, 0&lt;/value&gt;
              &lt;/setting&gt;
              &lt;setting name="Size" serializeAs="String"&gt;
                  &lt;value&gt;284, 262&lt;/value&gt;
              &lt;/setting&gt;
          &lt;/WindowsAppCs.Properties.Settings&gt;
      &lt;/userSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>It looks right to me, but the values do not update when running hosted within Visual Studio or when running the compiled EXE.</p>
  
  <p>I am sure that something very simple needs to be added or done, but I don't know what. Does anyone have any ideas here? </p>
  
  <p>Much thanks in advance...</p>