设置窗体FormBorderStyle 属性的不同效果

默认值:Sizable。

可供设置的FormBorderStyle 如下表:

ValueDescription
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值的效果截图如下:

No border

None

FixedSingle

FixedSingle

Fixed3d

Fixed3D

FixedDialog

FixedDialog

Sizable

Sizable

FixedToolWindow

FixedToolWindow

SizableToolWindow

SizableToolWindow

posted @ 2011-06-25 00:15  Irving314  阅读(6800)  评论(1编辑  收藏  举报