title: Windows 10 Display Scaling and PowerShell Forms
body: <p>I really have a serious problem ... I developed a tool in PowerShell for our employees in the company for many years now. This tool has a graphical user interface done with PowerShell Forms. With PowerShell Forms I mean something like that here:</p>
  
  <pre><code>[void] [system.reflection.assembly]::loadwithpartialname("system.windows.forms")
  
  $window = New-Object System.Windows.Forms.Form
  $window.StartPosition = "CenterScreen"
  $window.ShowInTaskbar = $True
  $window.AutoSize = $False
  $window.MinimizeBox = $False
  $window.MaximizeBox = $False
  $window.FormBorderStyle = "FixedToolWindow"
  $window.Backcolor = "White"
  $window.Text = "Caption of the Window, blah blah"
  </code></pre>
  
  <p>Code just should Show how I use PowerShell Forms. Normal method, I guess.</p>
  
  <p>Everything works perfect so far. Now we received new notebook models and those notebooks have a display resolution of 2560×1440. Per default the display scaling of Windows 10 is set over 150% so users could see something on the tiny displays.</p>
  
  <p><strong>This setting results in a very serious problem for me and my tool. All the graphical elements like buttons, labels, textboxes etc etc look incredible akward and displaced.</strong></p>
  
  <p>Is there any chance to do something about that ???</p>
  
  <p>If people set the display sacling at 100% Windows would be too small at this high resolution in combination with the small displays ...</p>