I have a modal dialog, and need to hide the Close (X) button, but I cannot use
ControlBox = false, because I need to keep the Minimize and Maximize buttons.
I need to hide just Close button, is there any way to do that?
Thanks a lot!
Update: I had permission to disable it, which is simpler 🙂 Thanks all!
You can’t hide it, but you can disable it by overriding the CreateParams property of the form.
Source: http://www.codeproject.com/KB/cs/DisableClose.aspx