We can hide close button on form by setting this.ControlBox=false;
Note that this hides all of those sizing buttons. Not just the X. In some cases that may be fine.
More Related Contents:
- How to remove all event handlers from an event
- Panel not getting focus
- How to build splash screen in windows forms application?
- ‘UserControl’ constructor with parameters in C#
- Translate Rectangle Position in Zoom Mode Picturebox
- C# Form.Close vs Form.Dispose
- Rounded edges in button C# (WinForms)
- How can I make a ComboBox non-editable in .NET?
- How to change the button text for ‘Yes’ and ‘No’ buttons in the MessageBox.Show dialog?
- How can SynchronizationContext.Current of the main thread become null in a Windows Forms application?
- Check if a record exists in the database
- Setting a Windows form to be bottommost
- Convert System.Drawing.Icon to System.Media.ImageSource
- How to recursively populate a TreeView with JSON data
- Making an indexed control array?
- Windows Forms application like Google Chrome with multiple processes
- Resize borderless window on bottom right corner
- how to sort string as number in datagridview in winforms
- Create custom shape for button
- Make DateTimePicker work as TimePicker only in WinForms
- Auto-width of ComboBox’s content
- C# Why use SuspendLayout()?
- How can I show a tooltip on a disabled button?
- How to get the screenshot of the form
- DataGridView bound to BindingList does not refresh when value changed
- How to catch a key press on a C# .NET form
- ComboBox AutoComplete on SubString
- Color specific words in RichtextBox
- TableLayoutPanel responds very slowly to events
- Open Form2 from Form1, close Form1 from Form2