Form.close method
Attempts to close the Form and destroy its window handle. OnClosing()
method and closing
event are first called to allow the close to be canceled. This allows you to first ask the user if they wish to continue working, save their work, remain in the program, etc.
See also: CancelEventArgs