-1

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!

boshap59
  • 1
  • 2
  • Modify the application's `app.manifest` (or `app.config`, depending on the .Net Framework in use and the target System) to enable DPI Awareness. See this: [How to configure an app to run correctly on a machine with a high DPI setting](https://stackoverflow.com/a/13228495/7444103). If you don't, your application may be subject to virtualization. The blurred appearance is just the more immediate, visual, consequence. Side note, `Visual Basic 2010` is very old. .Net Core 3.0 is coming. That will change something. – Jimi Mar 04 '19 at 20:29
  • @Jimi I have added the following to my app.manifest: true Is it going to do the same as your linked post suggestion? The syntax is surely different... – boshap59 Mar 06 '19 at 08:23
  • @Jimi ...and I got it from [link](https://www.sgrottel.de/?p=1581&lang=en) – boshap59 Mar 06 '19 at 08:27

1 Answers1

0

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.

boshap59
  • 1
  • 2