- 关键词的选择决定了你受益的高低
- PHP parse_str() 函数
- SEO之关键词选择实战经验(实用)
- ApplicationHost.config文件被破坏导致IIS崩溃
- 怎样确定网站优化的关键字
- 不能点右键、不用CTRL+A、不能复制
- thinkphp中create方法怎么用
- string.IsNullOrWhiteSpace
- ASP.Net错误信息 authentication mode="Windows" 的解决方法
- 弹出错误提示:不合法的日期格式欧哲日期超出限定范围,需要撤销吗
邮箱:
手机:15383239821
C# 获取当前屏幕大小或任务栏大小,不用API
使用SystemInformation类
//当前的屏幕除任务栏外的工作域大小
string currentScreenSize_OutTaskBar=SystemInformation.WorkingArea.Width.ToString() + "," +SystemInformation.WorkingArea.Height.ToString();
MessageBox.Show("当前的屏幕除任务栏外的工作域大小为:"+currentScreenSize_OutTaskBar);
//当前的屏幕包括任务栏的工作域大小
string currentScreenSize=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString() + "," + System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height.ToString();
MessageBox.Show("当前的屏幕包括任务栏的工作域大小为:"+currentScreenSize);
//任务栏大小
Size OutTaskBarSize = new Size(SystemInformation.WorkingArea.Width, SystemInformation.WorkingArea.Height);
Size ScreenSize = new Size(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height);
Size TaskBarSize;
TaskBarSize = new Size(
MessageBox.Show("任务栏大小:" + TaskBarSize.Width + "," + TaskBarSize.Height);
-
2010-07-20怎么使用robots.txt控制搜索引擎抓取文章
-
2020-08-04创业想做电商运营必须注意的细节问题
-
2010-12-09关键词的密度多少才适合?
-
2012-06-30关键词放在什么位置最好?
-
2014-06-13使用Global.asax的Application_Error记录Exception信息
-
2023-08-31PHP中static:静态方法和属性
