C# winform整个框体根据屏幕居中

public  void SetMid()
        {
            this.SetBounds((Screen.GetBounds(this).Width / 2) - this.Width / 2, (Screen.GetBounds(this).Height / 2) - (this.Height / 2), this.Width, this.Height, BoundsSpecified.Location);
        }