Icon Property (AForm)

Returns the icon displayed when a form is minimized.

Syntax

 [ pic = ] Object.Icon

The Icon property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

pic

APicture

A picture of the icon that is displayed when a form is minimized.

Comments

The Icon property specifies an icon for any form that appears in the top left corner of the form and on the Task Bar when minimized.

For example, a unique icon can be assigned to a form to indicate the form's function. Specify the icon by loading it using the Properties window at design time. The file loaded must have the .ico filename extension and format. If an icon is not specified, the default ATEasy icon for forms is used.

At run time, an object's Icon property can be set by any APicture object. You can use the LoadPicture function or to any method or property (i.e. the Form DragIcon or Icon property) that return an APicture object. An icon can be assigned by the LoadPicture function. To restore the ATEasy icon set the Icon property to Nothing.

Example

The following statement retrieves the AForm's Icon (Place the code in the Form OnLoad to see how it effects the form):

Icon=LoadPicture("C:\\Program Files\\ATEasy\\Images\\Icons\\Arrows\\ARW02LT.ico")

Applies to

AForm

See Also

BorderStyle, MaxButton, MinButton