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