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 AutoSize property…
Here are two images to show what we need:

(source: mediafire.com)

(source: mediafire.com)
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?
I’m assuming you meant “horizontal” split container based on your image.
You can try achieving this manually by using the
ControlAddedevent of the top panel:SmallPanel is a panel I placed in Panel1 of the SplitContainer and added a button in their to add more panels.