文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>C# 获取屏幕分辨率

C# 获取屏幕分辨率

时间:2011-01-11  来源:柳柳英侠

System.Windows.Forms.Screen screen = Screen.PrimaryScreen;      
    System.Drawing.Rectangle rct = screen.Bounds;      
    this.label1.Text = rct.Height.ToString();//高度      
    this.label2.Tex t= rct.Width.ToString();//宽度

 

WPF:

double   height   =   SystemParameters.PrimaryScreenHeight;
double   width   =   SystemParameters.PrimaryScreenWidth;

相关阅读 更多 +
排行榜 更多 +
滑动贴合3d

滑动贴合3d

休闲益智 下载
红蓝人冰火世界

红蓝人冰火世界

休闲益智 下载
阿凡提跑酷最新版

阿凡提跑酷最新版

冒险解谜 下载