title: How to prevent WinForm controls to get stretched and maintain a fixed size
body: <p>I'm working on a .NET 3.5 desktop application written in C#. It's complex UI is populated dynamically. One part of it is the following group box which is contained in a FlowLayoutPanel and the FlowLayoutPanel is contained in a UserControl. The screenshot is taken from the design view:</p>
  
  <p><a href="https://i.stack.imgur.com/F6SWE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F6SWE.png" alt="enter image description here"></a></p>
  
  <p>When I launch the application, all controls get stretched:</p>
  
  <p><a href="https://i.stack.imgur.com/5eT3Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5eT3Y.png" alt="enter image description here"></a></p>
  
  <p>Even I'm fixing the widths of each UserControl's size when <code>Load</code> event of the UserControl is called. The <code>AutoSize</code> property of all of the controls inside the group box is false.</p>
  
  <p>Why is this happening and how to prevent this? I want the UI look exactly like the design view.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The best answer to <a href="https://stackoverflow.com/questions/3750804/c-sharp-how-to-prevent-user-from-resizing-my-application-window">this question</a> didn't solve my problem. Firstly, setting the border style to <code>FixedX</code> creates an undesirable border. Secondly, the inner controls still expanded and they are clipped by the border.</p>