窗体获取焦点,显示在最前面:
Form.Activate();
退出程序:
Form.Close();
Application.Exit();
窗口的最大化:
this.WindowState = FormWindowState.Maximized;
窗口的最小化:
this.WindowState = FormWindowState.Minimized;
窗口的正常化:
this.WindowState = FormWindowState.Normal;
窗体获取焦点,显示在最前面:
Form.Activate();
退出程序:
Form.Close();
Application.Exit();
窗口的最大化:
this.WindowState = FormWindowState.Maximized;
窗口的最小化:
this.WindowState = FormWindowState.Minimized;
窗口的正常化:
this.WindowState = FormWindowState.Normal;