title: How do you get the state to which a (.net) form will be restored?
body: <p>I have a windows application and I want to save the size, position and WindowState between sessions.  There is one caveat however.  If the state when closing is minimized then I want to restore to the last visible state, i.e. Normal if it was normal before being minimized or maximized if it was maximized.</p>
  
  <p>Is there a property, check, call do do this?</p>