Infuriating Icon Problem

G

Gardner Andersen

I have an imagelist with 7 icons images in the collection. I am trying to
assign the icons to the items in a listview. In the designer, the proper
icons appear next to the listview items (a fixed collection). When I run
the application, I am getting completely different icons!

The icons I am getting are actually from an OLD imagelist that has been
deleted and replaced by an imagelist with the same name (with new icons).

I have tried the following things to get the right icons to display:

* Delete the old control and replace it with a new one and assign the new
icons

* Rebuild the app

* Restart the computer

* Editing the existing icons

Nothing has worked. Thoughts?
 
H

Homer J Simpson

Gardner Andersen said:
I have an imagelist with 7 icons images in the collection. I am trying to
assign the icons to the items in a listview. In the designer, the proper
icons appear next to the listview items (a fixed collection). When I run
the application, I am getting completely different icons!

The icons I am getting are actually from an OLD imagelist that has been
deleted and replaced by an imagelist with the same name (with new icons).

I've had a similar problem - 4 icons in a list but the wrong ones show up.
No solution so far.
 
G

gene kelley

I have an imagelist with 7 icons images in the collection. I am trying to
assign the icons to the items in a listview. In the designer, the proper
icons appear next to the listview items (a fixed collection). When I run
the application, I am getting completely different icons!

The icons I am getting are actually from an OLD imagelist that has been
deleted and replaced by an imagelist with the same name (with new icons).

I have tried the following things to get the right icons to display:

* Delete the old control and replace it with a new one and assign the new
icons

* Rebuild the app

* Restart the computer

* Editing the existing icons

Nothing has worked. Thoughts?

I have never been able to get the ImageList control to work. I see the icons in
TreeView, ListView etc in Design, but just does not work when run.

I have been using the ImageList Class creating, loading and binding as needed at
runtime - this method works as expected.

Gene
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top