c# windows form application close the whole application code example
Example 1: close windows web forms application c#
Application.Exit(); //It needs to be upercase...
Example 2: c# program exit
System.Windows.Forms.Application.ExitThread( )
Application.Exit(); //It needs to be upercase...
System.Windows.Forms.Application.ExitThread( )