Skip to content

Conversation

@fowl2
Copy link

@fowl2 fowl2 commented May 9, 2023

Seems to mostly work, but more of a MVP/POC.

Followed the instructions here: High DPI support in Windows Forms

On my Windows 10 22H2 machine, I can drag a window from my main display at 100% to another at 125% without it becoming blurry.

Also upgrades to .NET 4.8 - targeting .NET 4.7 didn't seem to scale tool strips correctly. This is only needed for the main project, but it would probably make sense for the others too?

@MscrmTools
Copy link
Owner

Thank you for helping on this one!
If I read it correctly, it seems each and every form must be set to scale to DPI?

@fowl2
Copy link
Author

fowl2 commented Jun 7, 2023

I did a few experiments (that I really should've recorded the outcome of) and AutoScaleMode.Dpi is what seemed to give the best results. IIRC I basically did a find and replace instead of opening each form in the designer - that may give better results.

Copy link

@Stitti Stitti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also works well for me on my Windows 10 computer with one screen at 100% and the second at 125%.
If some projects are already running on .Net Framework 4.8 anyway, I agree that we might as well upgrade them all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants