PrintPreviewDialog::MaximizeBox Property
This API supports the product infrastructure and is not intended to be used directly from your code.
Gets or sets a value indicating whether the maximize button is displayed in the caption bar of the form.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property bool MaximizeBox { bool get(); void set(bool value); }
Property Value
Type: System::Booleantrue to display a maximize button for the form; otherwise, false. The default is true.
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.
Note |
|---|
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 |
Available since 1.1
