System.Windows.Forms.Form.FormBorderStyle Property

Gets or sets the border style of the form.

Syntax

[System.Runtime.InteropServices.DispId(-504)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.FormBorderStyle.Sizable)]
public FormBorderStyle FormBorderStyle { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The border style of the form determines how the outer edge of the form appears. In addition to changing the border display for a form, certain border styles prevent the form from being sized. For example, the FormBorderStyle.FixedDialog border style changes the border of the form to that of a dialog box and prevents the form from being resized. The border style can also affect the size or availability of the caption bar section of a form.

Note:

With the FormBorderStyle.Sizable style, it is impossible to resize the window below a certain minimum value, even if you have set Form.ControlBox to false and assigned a zero-length string to Form.Text. Consider working around this by using the FormBorderStyle.SizableToolWindow style instead.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0