how to exit of application in winforms c# clean code example Example: c# program exit System.Windows.Forms.Application.ExitThread( )