Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Windows 10 scaling problem #2

Open
macwoj1569 opened this issue Sep 28, 2018 · 2 comments
Open

Windows 10 scaling problem #2

macwoj1569 opened this issue Sep 28, 2018 · 2 comments
Labels
waiting for a developer Waiting on a developer willing to tackle this problem

Comments

@macwoj1569
Copy link

noscaling

scaling

@tip2tail
Copy link
Owner

tip2tail commented Mar 22, 2019

Appreciate the issue being raised. I don't use desktop scaling in my projects or have a high DPI screen to test on so I will leave this as "waiting for developer". If anyone wants to tackle this I'd happily accept a PR.

@tip2tail tip2tail added the waiting for a developer Waiting on a developer willing to tackle this problem label Mar 22, 2019
@csdelan
Copy link

csdelan commented Feb 15, 2021

I had the same problem as the OP, but I was able to solve it without an actual code change, but a config change.
The solution is described here: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms?view=netframeworkdesktop-4.8
Basically all I did was add

<System.Windows.Forms.ApplicationConfigurationSection>
  <add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection>

to the app.config and change the .NET version to 4.7.2. Then it works... per the article.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting for a developer Waiting on a developer willing to tackle this problem
Projects
None yet
Development

No branches or pull requests

3 participants