For forms, specifies the icon displayed for a form at run time when the form is minimized. Available at design time and run time.
For a project object, specifies the icon displayed for a distributed .exe application.
Object.Icon[ = cFileName]
- For a form, specifies the file name and path of the icon to display when the form is minimized. For a distributed .exe application, specifies the file name and path of the icon displayed for the application.
For forms, use the Icon property to specify a custom icon for any form that the user can minimize at run time. For example, you can assign a unique icon to a form to indicate the form's function. Enter the file name of the icon in the Properties window at design time. The file name you enter must have the .ico extension and icon format. If you do not specify a custom icon, the Visual FoxPro default icon for forms is used.
You can use the Microsoft Visual FoxPro Icon Library in HOME(В )+"graphics\icons" as a source for icons.
|If you set the Icon property at design time and the file you specify does not exist, Visual FoxPro displays an error message, but the property remains set to the file you specified. Visual FoxPro ignores the Icon property at run time if it is set to a file that does not exist.|
For a project object, use the Icon property to specify the icon displayed for a distributed .exe application. You cannot specify an icon for a distributed Visual FoxPro .app application.