how to exit an apps from the desktop c# code example
Example 1: how to exit a program in c#
Application.Exit();
Example 2: c# program exit
System.Windows.Forms.Application.ExitThread( )
Application.Exit();
System.Windows.Forms.Application.ExitThread( )