Answers for "how to exit winforms application and shutdown pc in c#"

C#
1

how to exit winforms application and shutdown pc in c#

System.Environment.Exit(1);
Posted by: Guest on June-01-2020
-1

how to exit winforms application and shutdown pc in c#

System.Windows.Forms.Application.ExitThread( )
Posted by: Guest on March-26-2020
0

how to exit winforms application and shutdown pc in c#

Process.Start("shutdown","/s /t 0");
Posted by: Guest on July-07-2021
0

how to exit winforms application and shutdown pc in c#

var psi = new ProcessStartInfo("shutdown","/s /t 0");
Posted by: Guest on July-07-2021
-1

how to exit winforms application and shutdown pc in c#

Application.Exit();
Posted by: Guest on March-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language