code exit application c# code example Example 1: exit programm c# Application.Exit(); Example 2: c# application exit application.exit