I have the following situation.

Need:
A– always visible;B– “hiddable”;Form1– resizable;- The most right visible panel Docked.
- In the case in the picture, B should collapse, minimizing the form to the “A” size…
Apparently it is simple, but I tried some hours and posted this topic.
I used as base a Form + SplitContainer with a docked-to-right button in the Panel1.
There is a need to remember the actual Form size and to reestablish it when the button expands, or to reduce the form size to the Panel1 size when the form “collapses”.