c# winform取全屏幕大小
来源:互联网 发布:黑马程序员 c 课件 编辑:程序博客网 时间:2024/04/28 01:39
Winform,c#语句取(获取屏幕大小,包括全屏大小,除任务栏大小和全屏大小:
1.当前的屏幕除任务栏外的工作域大小
this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
2.当前的屏幕包括任务栏的工作域大小
this.Width=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
this.Height=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
3.任务栏大小
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;
4.winform实现全屏显示
WinForm:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.TopMost = true;
- c# winform取全屏幕大小
- c# winform最大化覆盖全屏幕(formborderstyle=none)怎么处理?
- 用C#实现全屏幕截图
- 用C#实现全屏幕截图
- c# winform实现buttom大小的改变
- C# Winform根据屏幕大小自动缩放
- C# winform 获取非客户区域大小
- C# winform 判断日期大小 比较日期大小
- C#实现全屏幕捕捉并且添加注释
- C#的WinForm中如何让窗体大小不能改变
- C# WinForm控件随窗体大小改变自动适应改变
- C# WinForm控件随窗体大小改变自动适应改变
- C# winform 窗体控件随窗体大小改变
- C#中WinForm实现控件随窗体大小自适应改变
- C#中实现全屏幕无标题栏的应用程序
- C# winForm
- C#Winform固定大小
- Winform窗体大小
- QTableWidget和 QTableView翻页效果
- 暴风影音
- Oracle trace level
- 8种食物抗衰老 让男人青春长在
- MyEclipse、Eclipse修改字体的大小
- c# winform取全屏幕大小
- 清华大学韩顺平讲师讲算法之三(上),高性能计算器堆之应用
- 起码我们曾经爱过,不是吗
- 修改用户进程可打开文件数限制
- HDU 3724 Encoded Barcodes(字典树,计算前缀数)
- C/S应用程序中进行HTTP登录,获取相应的资料。
- 算法感悟
- 清华大学韩顺平讲师讲算法之三(下),环链表创建与删除
- 华为交换机注释零-视图切换