Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows form wrong Resolution VB.NET [duplicate]

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?

like image 566
Bernie Noël Avatar asked Jul 14 '16 12:07

Bernie Noël


1 Answers

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

like image 84
Matt Wilko Avatar answered Nov 12 '22 20:11

Matt Wilko