title: Windows display settings is causing Screen.PrimaryScreen.Bounds.Width to be incorrect
body: <p>We have made a terms of use application that fills the user's entire screen, and centres the text in the middle of the screen.</p>
  
  <p>We have achieved these by setting the Location to <code>Screen.PrimaryScreen.Bounds.X + 10</code> and then the width to <code>Width = Screen.PrimaryScreen.Bounds.Width - 10,</code> - this gives effectively 10px padding and otherwise perfectly central text.</p>
  
  <p>The problem however, is when users change the 'Make it easier to read what's on your screen' option to 125%, the Bounds.Width value is incorrect, and the text goes way off the screen.</p>
  
  <p><img src="https://i.stack.imgur.com/d5W5G.png" alt="Make it easier to read what&#39;s on your screen, set to 125%"></p>
  
  <p>Interestingly if you set it to 'Larger - 150%' it calculates the screen width just fine.</p>
  
  <p>I've tried using <code>Screen.PrimaryScreen.WorkingArea.Width</code> too, but that just gives the same (incorrect) result.</p>
  
  <p>Is there anyway of resolving this please? Thank you</p>
  
  <p>(edit) Here is the full code which generates the element:</p>
  
  <pre><code>protected override void OnLoad(System.EventArgs e) {
      this._webBrowser = new WebBrowser {
        IsWebBrowserContextMenuEnabled = false,
        AllowWebBrowserDrop = false,
        Location = new Point(Screen.PrimaryScreen.Bounds.X + 10, Screen.PrimaryScreen.Bounds.Y + 150),
        Width = Screen.PrimaryScreen.Bounds.Width - 20,
        ScrollBarsEnabled = true,
        DocumentText = "&lt;html&gt;&lt;body&gt;&lt;div&gt;" + agreement.Terms + "&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;"
      };
  }
  </code></pre>