Closing Windows application
To close Windows Application in C#, type the below code
Application.Exit()
Application.Exit()
for close the whole Application!
Closing Specific Form in Windows application
In order to close a specific form in a Windows application using C#, type the below code:
FormName.Close()
Form.Close()
for close specific form!