获取屏幕分辨率
2013-05-11 15:42
169 查看
Winform取屏幕大小
2011/3/4 16:36:58 - tanlixiao
Winform(C#)获取屏幕大小,包括全屏大小,除任务栏大小和全屏大小
L M S
当前的屏幕除任务栏外的工作域大小
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;
2011/3/4 16:36:58 - tanlixiao
Winform(C#)获取屏幕大小,包括全屏大小,除任务栏大小和全屏大小
L M S
当前的屏幕除任务栏外的工作域大小
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;
相关文章推荐
- 安卓分享、截图、获取屏幕分辨率、当前版本号、获取sd卡目录工具类
- Android开发:获取屏幕宽和高的两种方法(px、dip、分辨率之间的关系及px与dip互相转化)
- Android开发:获取屏幕宽和高的两种方法(px、dip、分辨率之间的关系及px与dip互相转化)
- Android开发:获取屏幕宽和高的两种方法(px、dip、分辨率之间的关系及px与dip互相转化)
- .NET FrameWork获取电脑屏幕分辨率的方法
- cocos2dx 获取手机屏幕分辨率 objective-c android 和 Lua 交互 向lua 传参
- swift获取屏幕分辨率
- Android获取屏幕分辨率的两种方法及比较
- Android获取屏幕分辨率及DisplayMetrics简介
- TextView控件的使用及屏幕分辨率的获取
- Android获取屏幕分辨率和大小与设置壁纸、动态壁纸
- 在qt下获取屏幕分辨率
- Win32汇编 高DPI下如何获取屏幕物理分辨率(Native solution)
- iOS 获取屏幕分辨率 以及放大模式、高清模式区别
- ios 获取屏幕分辨率
- wince获取屏幕分辨率
- 获取屏幕硬件分辨率方法
- Qt 背景透明、无边框标题栏、鼠标拖动、定时器、获取屏幕分辨率,设置初始位置
- 正确获取android手机屏幕分辨率
- Android获取屏幕分辨率