csharp application exit
Code Example - csharp 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();
}
how to exit application csharp console
System.Environment.Exit(0);
// or
Environment.Exit(0);
csharp exit application
// In a console application:
Environment.Exit(0);
// In a WPF application:
Close();
exit programm csharp
Application.Exit();
csharp program exit
System.Windows.Forms.Application.ExitThread( )