Edit

Kongsi melalui


PrintPreviewDialog.MinimizeBox Property

Definition

Gets or sets a value indicating whether the minimize button is displayed in the caption bar of the form.

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

Property Value

true to display a minimize button for the form; otherwise, false. The default is true.

Attributes

Remarks

This property is not relevant for this class.

A minimize button enables users to minimize a window to an icon. To display a minimize button, you must also set the form's FormBorderStyle property to either FormBorderStyle.FixedSingle, FormBorderStyle.Sizable, FormBorderStyle.Fixed3D, or FormBorderStyle.FixedDialog.

Note

Minimizing a form at run time generates a Resize event. The WindowState property reflects the current state of the window. If you set the WindowState property to FormWindowState.Minimized, the form is minimized independently of whatever settings are in effect for the MinimizeBox and FormBorderStyle properties.

Applies to