title: How to write WinForms code that auto-scales to system font and dpi settings?
body: <p><strong>Intro:</strong> There's a lot of comments out there that say &quot;WinForms doesn't auto-scale to DPI/font settings well; switch to WPF.&quot; However, I think that is based on .NET 1.1; it appears they actually did a pretty good job of implementing auto-scaling in .NET 2.0. At least based on our research and testing so far. However, if some of you out there know better, we'd love to hear from you. <sup>(Please don't bother arguing we should switch to WPF... that's not an option right now.)</sup></p>
  <h3>Questions:</h3>
  <ul>
  <li><p>What in WinForms does NOT auto-scale properly and therefore should be avoided?</p>
  </li>
  <li><p>What design guidelines should programmers follow when writing WinForms code such that it will auto-scale well?</p>
  </li>
  </ul>
  <h3>Design Guidelines we have identified so far:</h3>
  <p>See <a href="https://stackoverflow.com/a/29766847/1730559">community wiki answer</a> below.</p>
  <p>Are any of those incorrect or inadequate? Any other guidelines we should adopt? Are there any other patterns that need to be avoided? Any other guidance on this would be very appreciated.</p>