borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Custom Tooltips Query)Next Topic (How do I calculate hours for Timesheets??) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Exe files and Icons....
Poster Message
magikandrea
Level: Big Cheese

Registered: 08-10-2002
Posts: 21

icon 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!

Thanks a lot for your help!

07-03-2003 at 09:47 AM
View Profile Send Email to User Show All Posts | Quote Reply
SteveG
Level: Sage


Registered: 15-04-2002
Posts: 56
icon Re: Exe files and Icons....

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
View Profile Send Email to User Show All Posts | Quote Reply
yronium
Level: Moderator


Registered: 14-04-2002
Posts: 907
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
magikandrea
Level: Big Cheese

Registered: 08-10-2002
Posts: 21
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon 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
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
magikandrea
Level: Big Cheese

Registered: 08-10-2002
Posts: 21
icon Re: Exe files and Icons....

Thank you! I'll try it!

10-03-2003 at 07:56 AM
View Profile Send Email to User Show All Posts | Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
CheChin
Level: Guest

icon 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
| Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
CheChin
Level: Guest

icon Re: Exe files and Icons....

heh... bring it on (i doubt you had to reinstall windows :p)

18-06-2003 at 06:16 PM
| Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
CheChin
Level: Guest

icon 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.

18-06-2003 at 11:40 PM
| Quote Reply
AndreaVB Forum : VB General : Exe files and Icons....
Previous Topic (Custom Tooltips Query)Next Topic (How do I calculate hours for Timesheets??) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder