设置窗体FormBorderStyle 属性的不同效果
默认值:Sizable。
可供设置的FormBorderStyle 如下表:
Value | Description |
---|---|
None | The form has no border. |
FixedSingle | The form has a non-resizable single line border. |
Fixed3D | The form has a non-resizable 3d border. |
FixedDialog | The form has a thick, non-resizable, dialog style border that has no minimize or maximize boxes. |
Sizable | The default. The form has a resizable border. |
FixedToolWindow | The form has a non-resizable border that has only a close button. This style is used for tool windows. |
SizableToolWindow | Same as FixedToolWindow but resizable. |
设置不同 FormBorderStyle值的效果截图如下:
None
FixedSingle
Fixed3D
FixedDialog
Sizable
FixedToolWindow
SizableToolWindow