title: C#, how to hide one form and show another?
body: <p>When my project starts Form1 loads and checks the program license with the server, if everything's OK it should: show Form2 and close Form1. Afterward when the user would close Form2 with the "x", the program should end.</p>
  
  <p>What do you think would be the best way of doing it?</p>
  
  <p>So far got only to form2.Show :)</p>
  
  <pre><code>...
  if (responseFromServer == "OK")
  {
      Form2 form2 = new Form2();
      form2.Show();
  }
  </code></pre>
  
  <p>Thanks!</p>