title: Windows forms full screen resolution
body: <p>I started working on a project in Windows Forms, and I want to set my main Form to full screen, and start adding control on it. The problem is that, after I set the Form to FullScreen with</p>
  
  <pre><code>this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
  </code></pre>
  
  <p>the main form is indeed set to FullScreen, but it remains at the original resolution in Visual Studio IDE. So I tried to get the Form resolution when in Full Screen with this piece of code</p>
  
  <pre><code>int h = Size.Height;
  int w = Size.Width;
  
  label1.Text = h.ToString() + " " + w.ToString();
  </code></pre>
  
  <p>and it indeed returns the resolution of the Form at that moment (1379 x 718) but the main problem is that when I set the Form resolution in IDE to that of the returned code above and then try to place a Control at let's say Position.X = 1300, it will show it halfway across the screen in the main program. It seems that the problem is a Form resolution at FullScreen different than the resolution at which I can place Controls.</p>
  
  <p>Is there a solution to this problem?</p>