Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this);
int width1 = ScreenArea.Width; //屏幕宽度
int height1 = ScreenArea.Height; //屏幕高度
this.Location = new System.Drawing.Point(width1 - 窗体宽度, height1 - 窗体高度); //指定窗体显示在右下角
C#如何获得屏幕宽度和高度
最新推荐文章于 2023-03-04 13:00:47 发布