Size pin = System.Windows.Forms.SystemInformation.WorkingArea.Size;
this.Location = new Point(pin.Width / 2 - this.Width / 2, pin.Height / 2 - this.Height / 2);
窗体让软件显示在指定屏幕位置
最新推荐文章于 2025-06-02 20:58:30 发布
Size pin = System.Windows.Forms.SystemInformation.WorkingArea.Size;
this.Location = new Point(pin.Width / 2 - this.Width / 2, pin.Height / 2 - this.Height / 2);