Disable or Hide the Close Button (X) on a Windows Form in C#
Gray out or remove the close button of a WinForms window with CreateParams or ControlBox, and stop the form from closing anyway with FormClosing.
Gray out or remove the close button of a WinForms window with CreateParams or ControlBox, and stop the form from closing anyway with FormClosing.