title: How to close a windows form and transfer control to an other form?
body: <p>I have encountered a problem in my application. I have two forms, one that is loaded when my application is started that asks for a password and other is shown when the user logs in with correct password.</p>
  
  <p>How can I close the login form and have the user proceed to next form that is actual application?</p>
  
  <p>Currently I hide the login form, but the requirement is to close the login form to prevent extra processing. However, when I close the login form my application exits and when I hide the login form but close the actual application form the login form remains open and prevents my application from closing because the login form is still running in background. </p>
  
  <p>How can in fix this? </p>