how to close the appliaction c# code example Example: how to exit a program in c# Application.Exit();