title: Restore WindowState from Minimized
body: <p>Is there an easy method to restore a minimized form to its previous state, either Normal or Maximized?  I'm expecting the same functionality as clicking the taskbar (or right-clicking and choosing restore).</p>
  
  <p>So far, I have this, but if the form was previously maximized, it still comes back as a normal window.</p>
  
  <pre><code>if (docView.WindowState == FormWindowState.Minimized)
      docView.WindowState = FormWindowState.Normal;
  </code></pre>
  
  <p>Do I have to handle the state change in the form to remember the previous state?</p>