Search code examples
vb.netgraphicsinstallationflagsdpi

incorrect program scaling on screen makes it look blurry - fix?


Compiled program (VB NET) looks blurry on screen, apparently because the dpi scaling is done by the OS and not the application.

When I change the desktop shortcut's Properties - Compatibility - Change high DPI settings to "Override high DPI scaling behavior" so the Application has control, AND start the program from that shortcut, then it does look sharp and nice.

desktop shortcut settings manually changed

Question: how to achieve the same effect at the level of compiler/installer? I have control over both but don't know what to change.

Design environment: Visual Basic 2010 Express (yes, I know! But it does work fine for my purposes, so ain't broken - don't fix it here.)

Thanks in advance!


Solution

  • Finally, I have researched the issue further and did a lot of tests.

    The solution: set all Forms to AutoScale=Font

    Apparently, Font knows the screen DPI resolution as well, so setting AutoScale to Font solves all the issues automatically.