1. 支援.net framework :
NET Framework improves WinForms' DPI support starting at 4.7. So I changed the runtime of the program to 4.7.2 (Windows 10 1803 or more comes with it)
2. app.config 加上
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2"/>
</System.Windows.Forms.ApplicationConfigurationSection>
</configuration>
沒有留言:
張貼留言