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

VB project ICON problem

Status
Not open for further replies.

Ramy27

Technical User
Apr 26, 2005
63
GB
I’m trying to create a new VB application. I’m doing so, by modifying an existing project that one of our colleagues created.

There is an icon in the project folder called SINEWAVE.ICO
I doubled clicked that and it opened in Microsoft Developer Environment. I modified the appearance of the icon and saved it under the same name.

When I run this new application, it’s still picking up the old appearance of the icon.

Then I tried to save it under different name and changed the reference. It’s still not picking it up. Does anyone know why?


 
It will be referenced in an ImageList somewhere.
You will need to open up the imagelist and add the altered Icon into it, putting it in the old icons index position.


Sweep
...if it works dont f*** with it
curse.gif
 
Assuming that you're using VS.NET 2003 open your project's properties and select Common Properties/Build.

On the tab shown you can select the application icon. Select your new icon file and build the application.

The reason why just editing the file didn't change it was that the icon is imported into the project when you open it and any further changes to the icon are not picked up until you open it again.

You may also wish to repeat this on each form, overwriting the current icon by importing your new file each time.



Bob Boffin
 
Just a buzzzzz.. but did you edit the correct image type of the icon? An icon can hold multiple formats (16x16, 32x32, etc.). If you have changed 32x32, but use the 16x16 nothing will seem changed...

Regards, Ruffnekk
---
Is it my imagination or do buffalo wings taste just like chicken?
 
I vote for ruffnekk.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top