zoukankan      html  css  js  c++  java
  • 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();

     

        }

  • 相关阅读:
    poj 2104 C
    2015 百度之星初赛 1 2 2015ACM/ICPC亚洲区上海站 codeforces 851
    3.10补
    3.9补
    3.8补
    3.6补
    3.5补
    3.4补
    3.3补
    2.35补
  • 原文地址:https://www.cnblogs.com/a_bu/p/5548917.html
Copyright © 2011-2022 走看看