主窗体不能被关闭因为在Program.cs文件中如下/// /// 应用程序的主入口点。/// Application.Run(new Form1());}所以一旦主窗体执行完毕,如果没有其他线程的话整个application进程就被关闭了