title: How to change one panel to another panel during runtime?
body: <p>I am trying to make a multiple page application using winforms. I decied to use multiple Panels - each panel represents different page, so I can switch between them when I need to display different content. 
   My problem during run time is when i try to switch between panels its not working. </p>
  
  <p>My Code:</p>
  
  <pre><code>private void Form2_Load(object sender, EventArgs e)
  {
      panel2.Visible = false;
  }
  
  private void label4_Click(object sender, EventArgs e)
  {
      panel1.Visible = true;
  }
  
  private void label5_Click(object sender, EventArgs e)
  {
      panel2.Visible = true;
      panel1.Visible = false;
  }
  </code></pre>