C3 exit program code example Example 1: exit programm c# Application.Exit(); Example 2: how to exit a program in c# Application.Exit();