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