c# process exit code code example
Example 1: exit programm c#
Application.Exit();
Example 2: c# how to exit program
System.Environment.Exit(1);
Example 3: c# program exit
System.Windows.Forms.Application.ExitThread( )
Application.Exit();
System.Environment.Exit(1);
System.Windows.Forms.Application.ExitThread( )