两种方法:
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;
2022-08-11 19:12:18
两种方法:
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;
下一篇:dubbo异步调用原理 (1)