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

How to get the program icon into the EXE

Status
Not open for further replies.

SGLong

Programmer
Jun 6, 2000
405
US
This is probably one of those slap yourself on the forehead questions, but it's driving me nuts. I've included an icon in the project info / attach icon screen, but each time I compile the program I still get the Fox Head instead of the desired icon. What am I missing?
 
You need to have an ico file with both 32x32 and 16x16 images. Most likely your ico is just one or the other.


Pete
blindpete@mail.com

What your mother told you is true! You will go blind! (from moonshine anyway)
 
Pete:

My ICO file contained only 32x32. I added a 16x16 image thru Microangelo but the icon is still a Fox Head. Is there anything else I should be looking for or doing?

Steve
 
Just to clarify: Are you seeing the "Fox Head" in Explorer when you look at the code file (Detail view, Large Icon View)? Are you seeing the FH in the Start/Programs Menu? Are you seeing the FH in the upper left hand corner of your main FoxPro Window (and/or on the Task bar)? Are you seeing the FH on your individual application forms?

Rick
 
Is the icon in question in explorer or the desktop? Or are you referring to the forms withing your vfp app keeping the foxhead?

Pete
blindpete@mail.com

What your mother told you is true! You will go blind! (from moonshine anyway)
 
I see the fox head both in explorer and when I create a shortcut and drag it to the desktop. In order to get the shortcut to have the proper icon I find that I have to place the icon in the applications directory, go into the properties of the shortcut and change icon. I'd rather that it were 'automatic' so that the user would see the proper icon all the time. The icon is built into the forms so they come out ok, and I've included the lines:
with _screen
.icon='reprints.ico'
endwith
in the main program so the icon is coming out right in the task bar.

 
Explorer (and the shortcuts) are a little bit picky. Did you make sure to include at least two images in your .ICO file (16x16x16 and 32x32x16 - height x width x colors)? You can have other images with more colors, but you need at least these two. (I usually add a 48x48x16 too - this is used in Explorer for entry on the main Start menu, and depending on the screen resolution for the for the Large Icon view in Explorer.) For more information go to .

Rick
 
Sorry SG, I'm stumped. 16x16 and 32x32 is all I have ever had to do before. Yoi might try ms support (see links above) You usually have to wade through lots of irrelavent stuff to find what you need... Good Luck and post what the problem was when you figure it out.

Pete
blindpete@mail.com

What your mother told you is true! You will go blind! (from moonshine anyway)
 
Pete & Rick:

Thanks for the tips. I was using Microangelo and it was doing 32x32x256 and 16x16x32. Apparently Explorer doesn't like those settings. When I located IMAGEDIT and rebuilt the icon in that everything came out great.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top