Infuriating Icon Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gardner Andersen

    #1

    Infuriating Icon Problem

    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?
  • Homer J Simpson

    #2
    Re: Infuriating Icon Problem


    "Gardner Andersen" <bolobaby@hotma il.comwrote in message
    news:Xns983BA17 DFEC9Bbolobabyh otmailcom@216.1 96.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.



    Comment

    • gene kelley

      #3
      Re: Infuriating Icon Problem

      On Mon, 11 Sep 2006 14:54:43 -0500, Gardner Andersen <bolobaby@hotma il.comwrote:
      >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

      Comment

      • Gardner Andersen

        #4
        Re: Infuriating Icon Problem

        Score - thank you.
        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
        >

        Comment

        Working...