windows forms close application code example
Example 1: how to exit a program in c#
Application.Exit();
Example 2: close windows web forms application c#
Application.Exit(); //It needs to be upercase...
Application.Exit();
Application.Exit(); //It needs to be upercase...