System.Threading.Thread.CurrentThread.Abort();或者 Process.GetCurrentProcess().Kill()或者 Application.ExitThread();或者 Application.ExitThread()