两种方法:
1.
Rectangle rect = Screen.GetWorkingArea(this);
int width =
rect.Width;
int height = rect.Height;
2.
Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen;
int width = rect.Width;
int height = rect.Height;
2021-09-03 16:07:25
两种方法:
1.
Rectangle rect = Screen.GetWorkingArea(this);
int width =
rect.Width;
int height = rect.Height;
2.
Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen;
int width = rect.Width;
int height = rect.Height;