System.Windows.Forms.Application.ExitThread(); System.Windows.Forms.Application.Exit(); System.Windows.Forms.Application.Restart(); Process.GetCurrentProcess().Kill();