首页 > 技术文章 > 自定义窗体位置

shuaimeng 2018-12-12 12:55 原文

 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;
        }

设置属性

 

推荐阅读