自定义窗体位置

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

设置属性

 

posted @ 2018-12-12 12:55  世人皆萌  阅读(152)  评论(0编辑  收藏  举报