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();

 

    }

 posted on 2016-06-01 11:07  仰光  阅读(956)  评论(0编辑  收藏  举报