最大化最小化关闭事件

if (this.WindowState == FormWindowState.Maximized)
{
btnmax.Text = "最大";
this.WindowState = FormWindowState.Normal;
}
else
{
btnmax.Text = "还原";
//Tooltp(button2, "还原");
this.WindowState = FormWindowState.Normal;
this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
this.WindowState = FormWindowState.Maximized;
}

 this.WindowState = FormWindowState.Minimized;

 Application.Exit();

原文地址:https://www.cnblogs.com/lmcblog/p/2608625.html