MinMaxButtons Property

Applies To

Form.

Description

You can use the MinMaxButtons property to specify whether Maximize or Minimize buttons will be available on a form.

Setting

The MinMaxButtons property uses the following settings.

Setting

Description

Visual Basic

None

The form will not have Maximize or Minimize buttons.

0

Min Enabled

Only the Minimize button is available.

1

Max Enabled

Only the Maximize button is available.

2

Both Enabled

(Default) Both the Minimize and Maximize buttons are available.

3


You can set these properties using the form’s property sheet, a macro, or Visual Basic.

You can set the MinMaxButtons property only in form Design view.

Remarks

Clicking a form’s Maximize button enlarges the form so it fills the Microsoft Access window. Clicking a form’s Minimize button reduces the form to an icon at the bottom of the Microsoft Access window.

To display Maximize and Minimize buttons on a form, you must set the form’s BorderStyle property to Thin or Sizable and the ControlBox property to Yes. If you set the BorderStyle property to None or Dialog, or if you set the ControlBox property to No, the form won’t have Maximize or Minimize buttons, regardless of the MinMaxButtons property setting.

Even when the MinMaxButtons property is set to None, a form always has Maximize and Minimize buttons in Design view.

If a form’s MinMaxButtons property is set to None, the Maximize and Minimize commands aren’t available on the form’s Control menu.

See Also

BorderStyle Property, ControlBox Property, Maximize Action, Minimize Action, Modal Property, PopUp Property.