private void Form_Load(object sender, System.EventArgs e)
{
this.Left=(int)((Screen.PrimaryScreen.Bounds.Width-this.Width)/2);
this.Top=(int)((Screen.PrimaryScreen.Bounds.Height-this.Height)/2);
}
窗体在屏幕的中央
最新推荐文章于 2021-02-06 18:15:56 发布