Horje
c# how to exit program Code Example
c# exit application
// In a console application:
Environment.Exit(0);
// In a WPF application:
Close();
exit programm c#
 Application.Exit();
exit a method c#
private void Test(int condition)
{
  if(condition)
    return; // Exit the methode

  // Here code if condition == false
}
c# how to exit program
System.Environment.Exit(1);
how to close an application in c#
this.Close();
//This only close the current form or window that you are using.
c# program exit
System.Windows.Forms.Application.ExitThread( )




Csharp

Related
find the max number in an array c# Code Example find the max number in an array c# Code Example
c# textbox get focus Code Example c# textbox get focus Code Example
c# console beep sounds Code Example c# console beep sounds Code Example
c# calculate difference between two dates in days Code Example c# calculate difference between two dates in days Code Example
remove whitespace between string c# Code Example remove whitespace between string c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9