Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change desktop icon from within VFP app

Status
Not open for further replies.

Raccoon

Programmer
Aug 18, 1999
92
0
0
US
Is it possible to change the icon for an application from within a VFP app (running as an .exe)?[bigears]
 
You can set a value to _Screen.Icon, like:
_Screen.icon = "MyIcon.ICO"

However, you can also specify the icon used for the EXE from within the project manager. Just go to the menu [Project -> Project Info] then click the button "Icon..." and pick the icon you want in the .EXE.

What you cannot do easily is from within the .EXE, permanantly change the icon associated with your own .EXE or any other .EXE. This would require editing the Resources stored in the .EXE file.
 
If you use a double icon (16x16 and 32x32) icon, and you do like wgcs suggest AND you also right mouse on the gray part of the project manager and go to builder and put the same icon there, that shoudl replace you exe icon. You need to find a double icon, that way it will show up properly in windows explorer and on your desktop. One example of a double icon is located at "C:\Program Files\Microsoft Visual Studio\Common\Graphics\Icons\Dragdrop", those are double icons.
Mike Gagnon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top