title: Bringing panel to front on a click of a button in c#
body: <p>I would like some help with code so my panels get brought to front when I click a button.</p>
  
  <p>I have tried</p>
  
  <pre><code>private void button22_Click(object sender, EventArgs e)
  {
      panel4.BringToFront();
  }
  </code></pre>
  
  <p>but that didn't seem to work for me.
  Does anyone know what I'm doing wrong or how I could get this working?
  I am in c# winforms.</p>