You can set the ControlBox property to false if you do not want this to be displayed. It will also remove the minimize and maximize buttons, mind you.
I also ask you to consider why you want to remove this button. Sometimes it makes sense to override the OnFormClosing method and, if necessary, set Cancel to true under certain conditions (for example, e.CloseReason == CloseReason.UserClosing ).
Dan tao
source share