在使用Windows窗体时,就是使用System.Windows.Forms名称空间。
.NET中的大多数控件都派生于System.Windows.Forms.Control类。
设计模式的设置:工具---选项
Application.Exit();退出应用程序
this.Close();关闭窗口