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

     

        }

  • 相关阅读:
    mongodb复制集搭建
    mongodb分片集群搭建
    mongodb安装、运行
    吉他“和弦”是什么?
    NoSQL 简介
    淘汰算法 LRU、LFU和FIFO
    Java遍历Map对象的四种方式
    终于搞懂了shell bash cmd...
    如何为openwrt生成补丁
    linux内核启动时报错ubi0 error: validate_ec_hdr: bad data offset 256, expected 128
  • 原文地址:https://www.cnblogs.com/a_bu/p/5548917.html
Copyright © 2011-2022 走看看