How To Change the Icon in an Application

Article translations Article translations
Article ID: 138757 - View products that this article applies to.
This article was previously published under Q138757
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SUMMARY

In a distributed application that will be run under Windows 95, you may need to change the icon so that the executable displays your own icon file instead of the FoxPro Logo. You can accomplish this by using a reference to the _SCREEN object. This will also change the title bar icon in a Windows 95 application.

MORE INFORMATION

The _SCREEN system memory variable specifies properties and methods for the main Visual FoxPro window. The property that needs to be changed in this case is the Icon property. To change the icon shown on the screen's title bar, use this command:
   _SCREEN.ICON = HOME()+"SAMPLES\GRAPHICS\ICONS\FLAG\FLGDEN.ICO"
				
To show how this works, enter this command in the Command window with Visual FoxPro running under Windows 95. There is a directory of icons shipped with Visual FoxPro located in the following directory:
Vfp\Samples\Graphics\Icons
For more information on the _SCREEN system memory variable, query in the online Help using _SCREEN.

Properties

Article ID: 138757 - Last Review: February 21, 2014 - Revision: 2.2
APPLIES TO
  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft Visual FoxPro 5.0 Standard Edition
  • Microsoft Visual FoxPro 6.0 Professional Edition
Keywords: 
kbnosurvey kbarchive kbenv kbhowto KB138757

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com