Winform中,建立了两个form,如何在第二个窗口中,点击按钮,然后关闭整个程序。
Application.Exit();
System.Environment.Exit(0)
Process.GetCurrentProcess().Kill();