title: Hide Form in C#
body: <p>I have a form in C# called <code>MainPanel</code> and a sub-form called <code>Login</code>. When the program starts, I want the <code>MainPanel</code> to load, but be disabled, and have the <code>Login</code> form to load, be at the front of the screen and active. My code for loading the <code>Login</code> form is shown:</p>
  
  <pre><code>Login l = new Login();
  l.setParent(this);
  l.Show();
  l.BringToFront();
  </code></pre>
  
  <p>This code is in the function in <code>MainPanel</code>:</p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  </code></pre>
  
  <p>and is being called, however, the <code>Login</code> form is not at the front. How do I force it to show at the front, be enabled, while keeping the <code>MainPanel</code> disabled (which I did by setting <code>enabled = false</code> which works fine)?</p>