PrintPreviewDialog.MaximizeBox Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

C#
[System.ComponentModel.Browsable(false)]
public bool MaximizeBox { get; set; }

Property Value

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

Attributes

Remarks

This property is not relevant for this class.

A maximize button enables users to enlarge a window to full-screen size. To display a maximize button, you must also set the form's FormBorderStyle property to either FormBorderStyle.FixedSingle, FormBorderStyle.Sizable, FormBorderStyle.Fixed3D, or FormBorderStyle.FixedDialog.

A maximize button automatically becomes a restore button when a window is maximized. Minimizing or restoring a window automatically changes the restore button back to a maximize button.

Anteckning

Maximizing 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 Maximized, the form is maximized independently of whatever settings are in effect for the MaximizeBox and FormBorderStyle properties

Applies to

Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10