0

currently i am working on high dpi windows forms applications. I use a monitor with a 3840x2160 resolution and 150% scaling.

I took the high dpi sample application from windows. I figured out that if i debug the sample application and set a breakpoint to the constructor head and add the SystemFonts.DefaultFont to the watchlist it destroys the layout. I have no idea why this happens.

See windows sample application (1)

Breakpoint

Watchlist

Windows sample application (2)

I hope I didn't forgot to mention anything important. Thanks in advance for your answers and help!

magicandre1981
  • 27,895
  • 5
  • 86
  • 127
Kamui
  • 1
  • 2
  • 1
    Have you modified the `app.manifest`, uncommenting the `` section? Read [How to configure an app to run correctly on a machine with a high DPI setting](https://stackoverflow.com/questions/13228185/how-to-configure-an-app-to-run-correctly-on-a-machine-with-a-high-dpi-setting-e?answertab=active#tab-top) and [How can I set the dpiAware property in a Windows application manifest](https://stackoverflow.com/questions/23551112/how-can-i-set-the-dpiaware-property-in-a-windows-application-manifest-to-per-mo). – Jimi Jul 09 '18 at 14:37
  • 1
    Thanks. Now it works like it should. But I still don`t understand why the behaviour is like this if i debug. Do you have an explanation? – Kamui Jul 10 '18 at 07:48

0 Answers0