WinForm form of border

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

FixedSingle

Fixed single-line border

Fixed3D

Fixed three-dimensional border

FixedDialog

Thick border fixed dialog-style

Sizable

Resizable border

FixedToolWindow

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.

SizableToolWindow

Adjustable tool frame size. Tool window does not appear on the taskbar. Current user presses Alt + Tab tool window.

 

Guess you like

Origin www.cnblogs.com/luyj00436/p/11547168.html