Home All Groups Group Topic Archive Search About

Infuriating Icon Problem

Author
11 Sep 2006 7:54 PM
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?

Author
12 Sep 2006 5:46 AM
Homer J Simpson
"Gardner Andersen" <bolob***@hotmail.com> wrote in message
news:Xns983BA17DFEC9Bbolobabyhotmailcom@216.196.97.136...
> 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.
Author
12 Sep 2006 8:07 AM
gene kelley
On Mon, 11 Sep 2006 14:54:43 -0500, Gardner Andersen <bolob***@hotmail.com> wrote:

Show quoteHide quote
>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
Author
13 Sep 2006 5:51 PM
Gardner Andersen
Score - thank you.

Show quoteHide quote
> 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
>