Home > DeveloperSection > Interviews > Is there an equivalent of exit() for quitting a C# .NET application?

Posted on    March-25-2011 4:30 AM

 C# C# 
 1 Answer(s)
  1453  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    March-25-2011 12:00 AM

Yes, you can use System.Environment.Exit(int exitCode) to exit the application or Application.Exit() if it’s a Windows Forms app.

Don't want to miss updates? Please click the below button!

Follow MindStick