title: Why can't you bind the Size of a windows form to ApplicationSettings?
body: <h3>Update: Solved, with code</h3>
  <p><a href="https://stackoverflow.com/questions/18585/why-cant-you-bind-the-size-of-a-windows-form-to-applicationsettings#19056">I got it working, see my answer below for the code...</a></p>
  <h3>Original Post</h3>
  <p>As Tundey pointed out in <a href="https://stackoverflow.com/questions/18421/best-way-to-bind-windows-forms-properties-to-applicationsettings-in-c#18456">his answer</a> to my <a href="https://stackoverflow.com/questions/18421/best-way-to-bind-windows-forms-properties-to-applicationsettings-in-c">last question</a>, you can bind nearly everything about a windows forms control to ApplicationSettings pretty effortlessly. So is there really no way to do this with form Size? <a href="http://www.codeproject.com/KB/cs/UserSettings.aspx" rel="nofollow noreferrer">This tutorial</a> says you need to handle Size explicitly so you can save RestoreBounds instead of size if the window is maximized or minimized. However, I hoped I could just use a property like:</p>
  <pre><code>public Size RestoreSize
  {
      get
      {
          if (this.WindowState == FormWindowState.Normal)
          {
              return this.Size;
          }
          else
          {
              return this.RestoreBounds.Size;
          }
      }
      set
      {
          ...
      }
  }
  </code></pre>
  <p>But I can't see a way to bind this in the designer (Size is notably missing from the PropertyBinding list).</p>