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

     

        }

  • 相关阅读:
    Linux 磁盘管理
    Linux 特殊权限及if语句
    Linux find命令
    MySQL索引知识介绍
    MySQL库表设计小技巧
    教你用SQL实现统计排名
    Truncate用法详解
    utf8字符集下的比较规则
    关于Aborted connection告警日志的分析
    MySQL DDL详情揭露
  • 原文地址:https://www.cnblogs.com/a_bu/p/5548917.html
Copyright © 2011-2022 走看看