自定义窗体位置

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

设置属性

猜你喜欢

转载自www.cnblogs.com/shuaimeng/p/10107719.html
今日推荐