PrintPreviewDialog.FormBorderStyle Property


This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the border style of the form.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public FormBorderStyle FormBorderStyle { get; set; }

Property Value

Type: System.Windows.Forms.FormBorderStyle

A FormBorderStyle that represents the style of border to display for the form. The default is FormBorderStyle.Sizable.

Exception Condition

The value specified is outside the range of valid values.

This property is not relevant for this class.

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.

.NET Framework
Available since 1.1
Return to top