Attaching a Default Icon to .exe file
300 pts.
0
Q:
Attaching a Default Icon to .exe file
Ok, I know how to change an icon, through the properties tag, but my question is this. How does one attach an icon to a program coded in Visual Basic with a default icon, instead of the one that is always there? Like if I make my own Icon.ico file, how do I make that the default icon for my program? Any help will be greatly appreciated.

Software/Hardware used:
OS is XP
ASKED: Oct 15 2009  11:52 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
29770 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button
In VB 6 (and I think it should be similar in VB 4) you can achieve that by setting the 'icon' property of your startup form to the desired default icon.
Last Answered: Oct 16 2009  1:43 PM GMT by Carlosdl   29770 pts.
Latest Contributors: Jgunja   1030 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TheFinder   300 pts.  |   Oct 16 2009  12:33AM GMT

If you read my question, then you’d see that the very first line says I know how to change an icon, that was not my question, the question was how to make an icon the default icon. not change one.
Thanks anyways.

 

mrdenny   46765 pts.  |   Oct 16 2009  4:07AM GMT

If I remember my VB4 correctly (it’s been a very long time since I have VB4-6 installed) there should be a way to edit the properties of the project where you can select the default icon for the application.

 

TheFinder   300 pts.  |   Oct 16 2009  2:23PM GMT

Jgunja,
I’m not sure what your saying, I’ve tried to add an Icon to each of the files within my program and none will allow me to do that.
Is there some trick to it?

 

Carlosdl   29770 pts.  |   Oct 16 2009  2:41PM GMT

As I said, this works in VB6, but I’m not sure it will work in VB4.

You don’t have to add an icon to the files. From the VB IDE, select your startup form (the one that is called when you run the program), and in the properties of the form look for the ‘icon’ property, and set the appropriate icon.

 

TheFinder   300 pts.  |   Oct 17 2009  2:55AM GMT

Carlosdl
Either I just don’t understand you or it’s not do-a-ble in VB4. but thanks anyways, so this problem is still un-resolved. Anyone else have any ideas?

 

Vatchy   670 pts.  |   Oct 20 2009  6:06PM GMT

First, you need to assign the icon to a form through the form’s properties. Then, in the Project properties dialog box go to the MAKE tab and under “Application” you should see Icon. In the icon combo box choose the form to which you assigned the icon. That will then be the default icon for the program.

 

TheFinder   300 pts.  |   Oct 20 2009  8:10PM GMT

Hi Vatchy,
Just to see if I understand you,
I do this forms properties thing “not in the vb program” correct, but just in windows, find the directory and then the form etc… if this is the case I’ve tried that and can’t do it, It does not give me an option to add an icon to the form through the forums properties.

 

Carlosdl   29770 pts.  |   Oct 21 2009  2:54PM GMT

No, you do this forms properties thing in the VB IDE.

 

TheFinder   300 pts.  |   Oct 21 2009  5:42PM GMT

Hi Carlosdl,
Thanks for your help, I got the first part, I never knew (icon) was in the properties window of VB. thank you.
I still don’t understand this part
“Then, in the Project properties dialog box go to the MAKE tab and under “Application” ”

where do I find the project properties “Make tab” or Application?

 

Carlosdl   29770 pts.  |   Oct 21 2009  10:03PM GMT

From the menu bar in VB (File, Edit, View, etc…) select the ‘Project’ sub-menu, and click on the ‘Properties’ option.

In the project properties window, select the ‘Make’ tab, and under ‘Application’ check that the form to which you assigned the icon is selected in the ‘icon’ dropdown list.

 

TheFinder   300 pts.  |   Oct 21 2009  11:04PM GMT

Thanks Carlosdl,
Hay it turns out that VB4 does not have the
“Then, in the Project properties dialog box go to the MAKE tab and under “Application” ”
tabs,
but you still solved my quest, you letting me know that the “icon” thing was in the properties window,
I added that to my main form, and when I compiled it, it had the new icon. So dude, thank you, you rock.
I give you a thumbs up, literally.

 
0