exit another application from c# code example
Example 1: c# exit application
// In a console application:
Environment.Exit(0);
// In a WPF application:
Close();
Example 2: c# application exit
application.exit
// In a console application:
Environment.Exit(0);
// In a WPF application:
Close();
application.exit