c# how to exit program code example
Example 1: exit programm c#
Application.Exit();
Example 2: how to exit a program in c#
Application.Exit();
Example 3: c# how to exit program
System.Environment.Exit(1);
Example 4: how to close an application in c#
this.Close();
//This only close the current form or window that you are using.
Example 5: c# program exit
System.Windows.Forms.Application.ExitThread( )