double workHeight = SystemParameters.PrimaryScreenHeight;
double workWidth = SystemParameters.PrimaryScreenWidth;
WinForm 获取屏幕大小
int iActulaWidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
int iActulaHeight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
WinForm 获取主显示器工作区域大小
int ScreenHeight = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
int ScreenWidth = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |