title: Resize embedded user controls in a panel C#
body: <p>Using WinForms in C#, I'm struggling to get an embedded user control to resize correctly. I can add it to the panel with no issue, and the panel resizes as I expect (and want) it to.</p>
  
  <p>To add the UserControl, I'm doing the following:</p>
  
  <pre><code>content.Controls.RemoveAt(0);
  content.Controls.Add(c);
  content.Controls[0].Dock = DockStyle.Fill;
  content.Refresh();
  </code></pre>
  
  <p>I cannot figure out how to get the newly added control to resize properly, I've also tried using Anchor with Top,Bottom,Left,Right but to no avail. Any help would be appreciated, thanks.</p>