how to exit program in visual studois c# code example
Example: how to close an application in c#
this.Close();
//This only close the current form or window that you are using.
this.Close();
//This only close the current form or window that you are using.