Showing posts with label Exit or Terminate program application from another form. Show all posts
Showing posts with label Exit or Terminate program application from another form. Show all posts

Monday, May 21, 2018

How To Terminate or Exit Program in C#

When your application opens another form and you want that the user can terminate the program without going back to the main form, this 1-line code will help you.


Application.Exit();