Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# exit application


if (System.Windows.Forms.Application.MessageLoop) 
{
    // WinForms app
    System.Windows.Forms.Application.Exit();
}
else
{
    // Console app
    System.Environment.Exit(1);
}

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #exit #application
ADD COMMENT
Topic
Name
7+1 =