自定义窗体位置

时间:2018-12-12 13:11:06   收藏:0   阅读:145
 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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!