title: How to make WinForms UserControl fill the size of its container
body: <p>I am trying to create a multilayout main screen application. I have some buttons at the top that link to the main section of the application (e.g. management window for each entity in the Model)</p>
  
  <p>Clicking any of these button displays the associated UserControl in a Panel. The Panel holds the UserControls that in turn holds the UI.</p>
  
  <p>The WinForms UserControl does not have the <code>Anchor</code> or <code>Dock</code> property. </p>
  
  <p>I have tried setting property of UserControl  </p>
  
  <pre><code>AutoSize=True
  </code></pre>
  
  <p>And</p>
  
  <pre><code>private void ManageUsersControl_Load(object sender, EventArgs e)
  {
          this.Width = this.Parent.Width;
          this.Height = this.Parent.Height;
  }
  </code></pre>
  
  <p>But these did not work.<br>
  Note: I load this control dynamically at runtime</p>