MinButton Property (AForm)

Returns a value that determines whether a form has a Minimize button.

Syntax

 [ bMinButton = ] Object.MinButton

The MinButton property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

bMinButton

Bool

A boolean expression that specifies whether a form has a Minimize button.

Where

bMinButton can be one of the following:

 

Value

Description

True *

The form has a Minimize button.

False

The form does not have a Minimize button.

Comments

The Minimize button enables users to minimize a form window to an icon.

For the Minimize button to be visible, the form's BorderStyle property must be set to something other than "None". When a window is minimized to an icon, restoring a window automatically changes the Restore button to a Maximize button, and maximizing a window automatically changes the Maximize button to a Restore button.

The settings for the MaxButton, MinButton, BorderStyle, and ControlBox properties are displayed on the form at run time. This property can be set at design time and is read-only at run time.

Note: Minimizing a form to an icon at run time generates a Resize event. The WindowState property reflects the current state of the window. If the WindowState property is set to "Minimized", the form is minimized independently of the settings for the MinButton and BorderStyle properties.

Example

The following statement returns the AForm MinButton property:

bfrm1MinButton = frm1.MinButton

Applies to

AForm

See Also

 

BorderStyle, ControlBox, MaxButton, OnResize, WindowState