Search code examples
.netvb.netwinformsresolutiondpi

Windows form wrong Resolution VB.NET


When I start my application, here is the result : enter image description here

I also tried to use metro gui, but nothing...

Also my question is, What option of visual studio should I setup to get the normal (not blurred) resolution of the winform?


Solution

  • It is because your application is not DPI aware and your display settings are not set to the default scaling

    The easiest fix is probably to set dpiAware to true in the application manifest (Project Properties>Application Tab>View Windows Settings Button).

    See this answer for details on this: How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

    For further details see this article Why does a High DPI Setting Make My Application Look Fuzzy and Have Clipped Text?

    Also see this article Writing DPI-Aware Desktop and Win32 Applications