tip2tail / t2tWinFormAppBarLib

Helper library for creating AppBars (forms which are docked to the side of the screen). AppBars reserve the required space, similar to the Taskbar in Windows.
MIT License
24 stars 2 forks source link

Windows 10 scaling problem #2

Open macwoj1569 opened 5 years ago

macwoj1569 commented 5 years ago
noscaling scaling
tip2tail commented 5 years ago

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.

csdelan commented 3 years ago

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.