title: Is it possible to react to user's dpi settings in a .NET application
body: <p><strong>Problem description:</strong></p>
  
  <p>I am currently developing a Visual Basic .NET application. It turns out that my application does not get displayed properly on systems that run on a different dpi-setting than "standard" (100% = 96dpi under windows xp).</p>
  
  <p>When I <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/display_use_large_or_small_fonts.mspx?mfr=true" rel="nofollow noreferrer">change the system's dpi settings</a> my GUI looks slightly messed up as you can see in the following screenshots (since this is a scaling issue it should not matter that the text on the screenshots is in German; sorry for this):</p>
  
  <p>Windows XP, 100% scale, 96 dpi -> Everything looks like I expect it to.
  <img src="https://i.stack.imgur.com/8ZnIl.png" alt="Windows XP, 100% scale, 96 dpi"></p>
  
  <p>Windows XP, 125% scale, 120 dpi -> The buttons at the bottom of the window do no longer fit inside the window.
  <img src="https://i.stack.imgur.com/2394C.png" alt="Windows XP, 125% scale, 120 dpi"></p>
  
  <p><strong>What I want to achieve:</strong></p>
  
  <p>In case the display scale is set to anything else than 100% I would like to show the user a warning dialog box as soon as the application starts.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there any possibility to read the system's dpi value? If so, how would that be?
  There seems to be a <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.graphics.display.displayproperties.aspx" rel="nofollow noreferrer">DisplayProperties-class</a> as well as <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.graphics.display.displayinformation.aspx" rel="nofollow noreferrer">DisplayInformation-class</a>, but as far as I can see it is only available for Windows-Store-Apps.</p>