how to make close button in form close the application in c# code example Example: how to close a form c# this.Close();