System.Windows.Forms.Form.FormBorderStyle Property

Gets or sets the border style of the form.


public FormBorderStyle FormBorderStyle { set; get; }


Documentation for this section has not yet been entered.


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.


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.


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