c# close window code example Example 1: c# close form this.Close(); Example 2: c# close window Application.Exit();