winforms programmatically close code example Example: close windows web forms application c# Application.Exit(); //It needs to be upercase...