title: Why are the buttons inside the panel not working?
body: <p>I am working on C# application. Basically my issue is that when I bring up a panel(using panel1.Show() on button click, panel indeed shows up but none of the buttons inside the panel do anything(code is written for the button clicks of those buttons). Part of the code that is working:</p>
  
  <pre><code>private void button4_Click(object sender, EventArgs e)
  {
      if (panel1.Visible == false)
          panel1.Show();
      else
          panel1.Hide();
  }
  </code></pre>
  
  <p>Now problem is with the button inside(Button 6 is in the panel, set there by designer):</p>
  
  <pre><code>private void button6_Click(object sender, EventArgs e)
  {
      panel1.Hide();
  }
  </code></pre>
  
  <p>Clicking on this button(after bringing the panel up) doesn't do anything at all. I have another button which is not working either(bit more complex function of it), however I'm sure I'd be able to resolve it if I understood why the simple one isn't working.
  Apologies if solution is out there somewhere, I have honestly tried but couldn't find anything on my own. </p>