C# 窗体启动位置:横向居中,纵向1/3
this.StartPosition = FormStartPosition.Manual; int x = (Screen.PrimaryScreen.Bounds.Width - this.Width) / 2; int y = (Screen.PrimaryScreen.Bounds.Height - this.Height) / 3; this.DesktopLocation = new Point(x, y);
原文地址: https://www.cveoy.top/t/topic/mRen 著作权归作者所有。请勿转载和采集!