Having difficulty editing an .ICO file


I need to modify the image inside of an ICO file, but when I edit it in Visual Studio, the file appears unchanged.  I edit the file and get it the way I want it, then save it.  When I re-open it, it looks just like I want it, but it appears unchanged in Windows Explorer, when I have it displayed as a Thumbnail.  And when I use the ICO file on a button, it is shown the old way.  What an I doing wrong?

Anybody know what the trick is to getting Windows and Visual Studio to recognize the change?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi, this should help you:

An icon file usually consists of several images with different sizes and color depths. Depending on the current view settings, Windows Explorer uses a different image from the icon file. You probably have edited only one of them, but Explorer also uses the other ones. You must edit all images to guarantee that your icon looks OK when displaying it somewere else.

When editing an icon in Visual Studio you can switch between the existing images (such as 32x32 and 16x16) by opening the context menu (mouse right click on icon preview pane) and choose "Current Icon Image Type". If you want to create a new icon type, then you can create it with context menu and "New image type".

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alexandre SimõesManager / Solutions ArchitectCommented:

How are you showing that image?
It's also possible that the image that is displaying is saved in the resources file, and isn't being updated when you change the source.

Where are you showing that icon?
Is it the application Icon?
If so, maybe setting it to nothing (no application icon), compiling, and re-setting it may help.

Alex :p
ba272Author Commented:
Thanks.  I'll give it a try.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.