private void PointXY() { Point sp = new Point(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); this.Left = 20; this.Top = (sp.Y - this.Height) / 2; }
设置属性
自定义窗体位置
原文:https://www.cnblogs.com/shuaimeng/p/10107719.html