C# How to close an application with C#? code example Example: c# program exit System.Windows.Forms.Application.ExitThread( )