在 Windows Forms 中启用 High DPI
2019-10-27
最近在使用 WinForms 时,发现默认情况下各个控件很模糊。最终找到的解决办法是在项目里的 App.config 文件里的 configuration 标签内添加如下代码1: <System.Windows.Forms.ApplicationConfigurationSection> <add key="DpiAwareness" value="PerMonitorV2" /> </System.Windows.Forms.ApplicationConfigurationSection> 然后需要在 Main 函数中…