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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the icon of .exe or .app file

Status
Not open for further replies.

FoxKid

MIS
Jun 8, 2003
92
IN
Hi all,
I have created .exe file of my project. But it is showing fox(default foxpro icon) as its icon. I want to change it.
How is it possible?


Thanks and regards
 
There is an icon property of the forms, and this includes the _screen object so set these properties as needed. For the _screen you will need to set it at runtime with something like:

_Screen.Icon = "myicon.ico"

...in your main.prg.


Also, when you have the Project manager open for your project go up to the system menu...Project - Project Info and look at the project tab of the resulting dialog...in the bottom right corner you will see Attach Icon.

Slighthaze = NULL
craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
In my project manager I am just adding my file main.prg. In this prg I have written _screen.icon='iconname'. But I want that when I create .exe file its icon should change with my desired icon.

Note :- I am not making .exe with wizard and also I am just including main.prg (only one file to it). having codes as :

CLOSE ALL
CLEAR ALL
set excl off
SET STATUS bar OFF
SET TALK off
set date british
set safety off
set dele on
SET CENTURY ON
set defa to \\mnew\c\sukam
set path to \\mnew\c\sukam\database
do .\menu\main.mpr
DO FORM .\forms\main
_screen.caption="SUKAM CRAFTS LTD."
_SCREEN.WindowState= 2
_screen.Icon='.\PICTURE\TRANSFRM.ICO'
READ EVENTS

I want to change the icon of main.exe which I am creating and which I will keep on my desktop.
In short I don't want user to know that this project is made in visual Foxpro.

Thanks and Regards

 
FoxKid

Take a look in the help file under :
Changing the Default Application Icon
After your application is compiled, the default Visual FoxPro icon appears in the Windows Explorer or Start Menu as the application icon. You can use the generic icon that is supplied by Visual FoxPro or design your own.

If you want to display your own icon, create an icon (.ico) file with two images: one small (16 by 16) and one standard (32 by 32). Create both images as 16-color icons.

You can change the default Visual FoxPro icon in the Project Info dialog box of the Project menu. If you use the Setup to create distribution disks for your application, you can also specify an application icon there.

To change the default application icon using the Project Manager

In the Project Manager, select the main file for your project.
From the Project menu, choose Project Info and then select the Project tab.
Choose Attach icon.
Choose Icon and then select an icon (.ico) file to assign to your project.



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks Mike,
I got it now.

Thanks and Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top