windows forms close form code example
Example 1: c# how to close application
Environment.Exit(0);
Example 2: how to close a form c#
this.Close();
Example 3: c# close window
Application.Exit();
Environment.Exit(0);
this.Close();
Application.Exit();