2

I have an issue with the presentation of standard Windows Forms application on my laptop. Specially comparing the VS designer presentation and executed application. Please refer to the screenshot:

Screenshot

Fonts on all controls look very bad. The similar problem occurs when there is an image placed on background of the form. The image is enlarged above it standard resolution, so it's also look terrible.

I have tried different scaling configuration, but with no luck. Any ideas?

Details: Windows 10, 120 DPI (125%), VS2015

Community
  • 1
  • 1
Piotr
  • 21
  • 1
  • 4
  • The first one worked fine for me. I have added app manifest with configuration: true I'm not sure how it will affect the application scaling to different DPI, but for now at least fonts are clear :) – Piotr Mar 07 '16 at 10:40

1 Answers1

1

Select your Form, go to Properties and change AutoScaleMode property from Font to Dpi.

For more information in regards to scaling in Windows Forms, refer to MSDN article Automatic Scaling in Windows Forms.

First half explains the background behind the need of scaling and explains some of the legacy constructs. Scroll down about half-way to Current Support for Automatic Scaling (or click this link).

B.K.
  • 9,982
  • 10
  • 73
  • 105
  • 1
    Thanks. Frankly speaking this is the first thing that I have done. The screenshot was made when AutoScale was set to DPI :( – Piotr Mar 07 '16 at 10:27