The key statement
In view of the design of the windows initialization method (InitializeComponent), code is as follows:
1 //…… 2 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 3 //……
Set in the design FormBorderStyle page to None.
Explanation
Winform using the default form, containing the border. As shown below:
Is now required external borders and toolbars are not displayed. Results as shown below:
Window may be provided for the attribute FormBorderStyle None.
* .Designer.cs at initialization method (InitializeComponent), code is as follows:
1 //……
2 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 3 //……
appendix
Property Value |
Explanation |
None |
Rimless |
|
Fixed single-line border |
|
Fixed three-dimensional border |
|
Thick border fixed dialog-style |
|
Resizable border |
|
Adjustable tool frame size. Tool window does not appear on the taskbar. Current user presses Alt + Tab tool window. Although designated FixedToolWindow form usually does not appear in the taskbar, you must also ensure ShowInTaskbar property is false. Because its default value is true. |
|
Adjustable tool frame size. Tool window does not appear on the taskbar. Current user presses Alt + Tab tool window. |