Exit an Application : Exit « Language Basics « VB.Net






Exit an Application

Exit an Application

Public Class MainClass

   Shared Sub Main()
      System.Environment.Exit(System.Environment.ExitCode)
   End Sub ' ValidationError

End Class
 


           
       








Related examples in the same category

1.Exit a LoopExit a Loop
2.Exit a Do While LoopExit a Do While Loop