Icon Property (Visual FoxPro)
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]
Return Value
- 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.
Remarks
Applies To: Form | Project Object | _SCREEN
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.
Note
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.
See Also
Reference
Caption Property (Visual FoxPro)
Picture Property (Visual FoxPro)