Answers for "close button c#"

C#
1

c# close program

if (System.Windows.Forms.Application.MessageLoop) 
{
    // WinForms app
    System.Windows.Forms.Application.Exit();
}
else
{
    // Console app
    System.Environment.Exit(1);
}
Posted by: Guest on March-15-2022
0

c# close program

this.Close();
Posted by: Guest on March-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language