title: Splitcontainer flowlayoutpanel or autosized panel (VB.NET)
body: <p>Forms in an application I'm working on with a team have a datagridview as main component (it should take up most of the size), but there are other components. there is a horizontal splitcontainer to split them, but I was wondering how to make the top panel resize to its contents. Unfortunately, the panels in a splitcontainer don't have an <code>AutoSize</code> property...</p>
  
  <p>Here are two images to show what we need:
  <a href="https://i.stack.imgur.com/DaXym.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DaXym.png" alt="image1"></a><br>
  <sub>(source: <a href="http://www.mediafire.com/conv/8d141b69c63b0d3ac8aebf9129bb77e25ee4a75086cfa6595c4510041fda1fa66g.jpg" rel="nofollow noreferrer">mediafire.com</a>)</sub>  </p>
  
  <p><a href="https://i.stack.imgur.com/vz7E2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vz7E2.png" alt="image2"></a><br>
  <sub>(source: <a href="http://www.mediafire.com/conv/56d959d2a9f99b71af16f7ab3eb5833874e8583f7b15bd1df16aafaa7313a7066g.jpg" rel="nofollow noreferrer">mediafire.com</a>)</sub>  </p>
  
  <p>As you can see, the top panel of the splitcontainer should adjust to the size of its contents. Is there any way to achieve this?</p>