title: How do I fit/re-size Windows Form to any screen resolution?
body: <p>I know this is duplicated question but I checked all other related question and their answers did not help ( the result still the same as shown in screenshot 2) </p>
  
  <p><a href="https://i.stack.imgur.com/0NqrB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0NqrB.jpg" alt="screenshot1"></a></p>
  
  <p>I am new to c# windows forms. As shown in screenshot1, I have <code>Form1</code> with some controls and each group of controls were put in a panel. I designed the application in PC1 as shown in Screenshot1 which is fit the screen resolution and worked well.</p>
  
  <p><a href="https://i.stack.imgur.com/Za5Vl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Za5Vl.jpg" alt="Screenshot2"></a></p>
  
  <p>My application was  developed in 1366 x 768 screen resolution (as shown in Screenshot1) but when I run this application in different computer (PC2) with different monitor size and different screen resolution the form appeared too big and part of the application is missing or is out of the screen. </p>
  
  <p>However I solved this issue using Anchors but another issues came up which is: the user control does not re-size itself ( as shown in screenshot2) and part of it is cut or went under panel1 . I do not know if the problem is related to user control or related to all controls in Form1 (they should resize themselves) </p>
  
  <p>I even tried the following code but the result still the same:</p>
  
  <pre><code>this.WindowState = FormWindowState.Maximized;
  this.Location = new Point(0, 0);
  this.Size = Screen.PrimaryScreen.WorkingArea.Size;
  Screen.PrimaryScreen.WorkingArea
  </code></pre>
  
  <p>I have been searching to solve this issue the whole day yesterday but I failed, Please help me with any idea/suggestion it might work. Thank you</p>