SteGriff

Blog

Next & Previous

Windows Forms scaling on Surface Pro

We have been working on an Office Add-in which is primarily being deployed on Surface Pro 3s and 4s. These units all have their scaling set to 200% which presents a High DPI challenge.

Here are some conditions unique to our situation:

We now have a build which functions nicely at all ranges of DPI settings. The most helpful resource I have found so far was a StackOverflow answer cataloguing the experiences of another developer, 'Creating a DPI aware application'. It's really a great answer!

The points (credit to Trygve) are:

From this answer, the most important takeaways for me were:

If I could start again, I would start with the above advice, unaltered fonts, and correct AutoScaleMode settings! It's also useful to have a 200% display for testing (but not developing).