Skip to main content
4 of 4
Active reading.
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

If you really need it to close out you can also use Environment.Exit(), but it is not graceful at all (more like ending the process).

Use it as follows:

Environment.Exit(0) 
John
  • 6.6k
  • 4
  • 41
  • 59