title: How to add user control to panel
body: <p>I have created multiple user controls in my project and what I need to do is to be able to switch between them on a panel control.</p>
  
  <p>for example, if the user click button1, userControl1 will be added to panel after removing every control on it and so on.</p>
  
  <p>I have this code :</p>
  
  <pre><code>panel1.Controls.Add(MyProject.Modules.Masters);
  </code></pre>
  
  <p>but it's not working.</p>
  
  <p>How I can do it?</p>