PrintPreviewDialog.FormBorderStyle Property

Definition

Gets or sets the border style of the form.

public:
 property System::Windows::Forms::FormBorderStyle FormBorderStyle { System::Windows::Forms::FormBorderStyle get(); void set(System::Windows::Forms::FormBorderStyle value); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.FormBorderStyle FormBorderStyle { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.FormBorderStyle : System.Windows.Forms.FormBorderStyle with get, set
Public Property FormBorderStyle As FormBorderStyle

Property Value

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

Attributes

Exceptions

The value specified is outside the range of valid values.

Remarks

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.

Applies to