title: Getting a User Control to fill its container
body: <p>I've created a user control which contains a label and a progress bar. I've also created another user control which contains only a flow layout panel with the flow direction set to top down. When I add the former to the flow layout panel of the latter, I would like it to use the maximum amount of horizontal space available and the minimum amount of vertical space such that the default heights of the label and progress bar are honoured. Is there a way to do this?</p>
  
  <p>I've uploaded a <a href="https://imgur.com/V5Rbf.png" rel="nofollow noreferrer">screenshot</a> to help illustrate the problem. The user control containing the label and progress bar is in red and the user control containing the flow layout panel is in green.</p>