magikandrea Level: Big Cheese Registered: 08-10-2002 Posts: 21
Exe files and Icons....
Hi!
I would like to change the icon of my exe file.
How can I do that?
I saw the Icon combo box into my project properties, but this combo box is empty!
I believe the following works - if not let me know.
Goto into Project .... ProjectProperties. Click on Make tab.
In the application section set the Icon for your start-up form to the one that you want to appear for the .exe file. Then when the program is packaged this is the icon that appears for the .exe file.
07-03-2003 at 01:22 PM
|
yronium Level: Moderator Registered: 14-04-2002 Posts: 907
Re: Exe files and Icons....
Did you set an icon in the Icon property of the form?
____________________________
Real Programmer can count up to 1024 on his fingers
07-03-2003 at 01:52 PM
|
magikandrea Level: Big Cheese Registered: 08-10-2002 Posts: 21
Re: Exe files and Icons....
I didn't set an Icon in the Icon property of the form, because my project hasn't forms.
It's just an .exe file that reads data from a SQL server and puts it into MDB files. This program will work as a scheduled task!
What can I do?
07-03-2003 at 02:01 PM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1617
Re: Exe files and Icons....
If you add a resource file, add an icon, call it "0" ("'s around it are all right). The program will use that graphic for the icon.
(The resource creator is in the addins, called "VB 6 Resource Editor" set it to loaded/startup)
It's then visible on the toolbar, it's a green block like icon with a small hand (left of the coordinate section).
[Edited by JLRodgers on 07-03-2003 at 03:14 PM GMT]
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
07-03-2003 at 09:12 PM
|
magikandrea Level: Big Cheese Registered: 08-10-2002 Posts: 21
Re: Exe files and Icons....
Thank you! I'll try it!
10-03-2003 at 07:56 AM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: Exe files and Icons....
magikandrea...
just in case you need a way to change a compiled version of your program... post back and i might have a way to patch your program to have a different icon..
others said it was not possible, but i was once able to change the icon of an executable from vb.
just in case yer interested.
____________________________
Been busy trying to take a second degree <--it's not working out...
14-03-2003 at 04:16 PM
|
CheChin Level: Guest
Re: Exe files and Icons....
I am very interested in a way of doing that vbgen, want to share the "secret"?
18-06-2003 at 04:34 PM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: Exe files and Icons....
i have to say, trying this will risk the functionality of the program, and of the system.
i tried it once, and i had to reinstall windows.
sure about this?
____________________________
Been busy trying to take a second degree <--it's not working out...
18-06-2003 at 05:30 PM
|
CheChin Level: Guest
Re: Exe files and Icons....
heh... bring it on (i doubt you had to reinstall windows :p)
18-06-2003 at 06:16 PM
|
steve_w Level: Moderator Registered: 18-04-2003 Posts: 1156
Re: Exe files and Icons....
After you've reinstalled windows remember to come back and tell us please
18-06-2003 at 10:03 PM
|
CheChin Level: Guest
Re: Exe files and Icons....
hmm.. if only vbgen would "share" his method. hmm.. i could guess on how though. open the file, search through it for the icon file, and replace the whole bunch with a new icon.