c# quit application code example
Example 1: c# exit application
// In a console application:
Environment.Exit(0);
// In a WPF application:
Close();
Example 2: c# how to exit program
System.Environment.Exit(1);
Example 3: c# application exit
private void button1_Click(object sender, EventArgs e) // this is your button double click your button and you will find it
{
Application.Exit();
}
Example 4: c# program exit
System.Windows.Forms.Application.ExitThread( )
Example 5: c# application exit
application.exit