Winforms DPI scaling messed up with Windows 10 anniversary update and Visual Studio 2015 Update 4 -


i'm running winforms app using windows 10 anniversary update.

when running under visual studio 2015 update 4 debugger, ui layout messed up. controls smaller, others larger, mouse hit detection off, , on.

when run exe itself, without debugger, displays correctly.

also, when running in previous windows 10 build 1511 , visual studio 2015 update 3, app displays fine well.

so problem either anniversary build or visual studio 2015 update 4. (i unable try anniversary build visual studio 2015 update 3 latter build no longer available.)

what can account this?

i've verified app.vshost.exe.config has same content app.exe.config, , there no dpi-aware properties in either.

edit: ran app using "start without debugging" , then attached debugger. attaching causes ui resize high-dpi unscaled view, i.e. in native screen resolution - small pixels across entire ui. different either of 2 previous scenarios, , more puzzling.

edit 2 : after signing out , logging in, app displays fine. @ least there workaround. obviously, app cannot ship this, still looking way avoid problem in first place.

be sure specify dpi awareness level in application manifest or via call setprocessdpiawareness.

are loading wpf content in process?


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -