title: windows forms hide panel and show button
body: <p>I have a panel on my windows forms inside of which I have two text boxes and a button for user login. On successful login i hide the panel and show another button called Process Cases. Everything works the way I want. </p>
  
  <pre><code>myPanel.Visible = false;
  btnProcessCases.Visible=true;
  </code></pre>
  
  <p>The Process Cases button is laid out below the panel. Upon hiding I would like the button to occupy the position that the panel earlier occupied. How do I do that?
  Right now its positioned below the panel.</p>