Screen sc = Screen.PrimaryScreen;
int a = sc.Bounds.Width;
int b = sc.Bounds.Height;
MessageBox.Show(a.ToString() + " " + b.ToString());
C#获取屏幕尺寸
最新推荐文章于 2023-03-04 13:00:47 发布
Screen sc = Screen.PrimaryScreen;
int a = sc.Bounds.Width;
int b = sc.Bounds.Height;
MessageBox.Show(a.ToString() + " " + b.ToString());