title: how to auto adjust controls when their size changes c#
body: <p>I have on <code>winform</code> an <code>usercontrol</code> that can be multiple created dynamically at runtime. I have two ways to see them: in maximal mode and minimal mode. The idea is that ,when they are minimal,some objects from <code>usercontrol</code> are hidden. I want,if I switch to maximal mode,the usercontrols to be automatically adjusted .How can I do that?I started with the idea to compute their width and height ,but I don't know how to create the new points.  My pictures below show better:</p>
  
  <p>this is in minimal mode:</p>
  
  <p><img src="https://i.stack.imgur.com/y8N7Y.png" alt="enter image description here"></p>
  
  <p>how they look when I change it to maximal mode: <img src="https://i.stack.imgur.com/y4uiC.png" alt="enter image description here"></p>
  
  <p>how I would like to be usercontrols: 
  <img src="https://i.stack.imgur.com/RkY0G.png" alt="enter image description here"></p>