zoukankan      html  css  js  c++  java
  • winform当前屏幕大小

    当前的屏幕除任务栏外的工作域大小
        this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
        this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;

    当前的屏幕包括任务栏的工作域大小
    this.Width=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
    this.Height=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;

    任务栏大小
    this.Width=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width-System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
    this.Height=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height-System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;

    winform实现全屏显示
    WinForm:
    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
    this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
    this.TopMost = true;  

  • 相关阅读:
    前端-JavaScript
    前端-HTML
    Python源程序(.py)转换为可执行文件(.exe)
    进程
    算法之动态规划问题
    算法之斐波那契数列
    贪心算法找零问题
    算法之迷宫问题
    数据结构相关知识
    常用排序算法
  • 原文地址:https://www.cnblogs.com/qixinjian/p/12072770.html
Copyright © 2011-2022 走看看