Winform 支持高清屏(High DPI) 设置

http://www.cnblogs.com/weiym/p/3555068.html
http://crsouza.com/2015/04/how-to-fix-blurry-windows-forms-windows-in-high-dpi-settings/

static class Program

    {

        /// <summary>

        /// 应用程序的主入口点。

        /// </summary>

        [STAThread]

        static void Main()

        {

 

            if (Environment.OSVersion.Version.Major >= 6)

                SetProcessDPIAware();

 

 

            Application.EnableVisualStyles();

            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new Form1());

        }

 

        [System.Runtime.InteropServices.DllImport("user32.dll")]

        private static extern bool SetProcessDPIAware();

 

    }

原文地址:https://www.cnblogs.com/a_bu/p/5548917.html