this.Size = Screen.PrimaryScreen.WorkingArea.Size;
//最大化最小化窗口
private void btnNormMax_Click(object sender, EventArgs e)
{
if (this.Size != Screen.PrimaryScreen.WorkingArea.Size)
{
this.Location = new Point(0, 0);
this.Size = Screen.PrimaryScreen.WorkingArea.Size;
}
else
{
int winWidth = 990, winHeight = 693;
this.Location = new Point((Screen.PrimaryScreen.WorkingArea.Size.Width- winWidth)/2, (Screen.PrimaryScreen.WorkingArea.Size.Height - winHeight) / 2);
this.Size = new Size(winWidth, winHeight);
}
}