Icons not showing up on Treview
I am using VS 2005 Beta and I have a Treeview UserControl that I built for a
menu. I added an imageList to the control and added some icons that I want
to associate with the control. When I build the solution and view the
UserControl placed on a form in the designer, I can see the icons.
However, when I run the solution's executable I do not see the icons in the
Treeview. It is like the images are not getting placed into the output of
the build or something. I have managed to break this in two seperate places. I cannot for the life of me figure out what I missing since this used to work.
Anyone ran into this?
-Keith
I am unable to replicate your problem, using Beta2. I created a UserControl that contained a TreeView and an associated ImageList. I added three nodes to the TreeView, and gave each a different image from the ImageList. I used Icons in my test case. The three nodes appear with icons both at design time and runtime.
Have you confirmed it doesn't work on other XP machines, or just yours? Can you replicate the problem in a new simplified test case project?
Something weird, it's displaying random windows icons on one of the node. Tonight I got the "shared" icon (small hand).
I think, I know what going on. My panel is owner-drawn with double buffering. I removed the double-buffering logic and it seems to be working fine now.
JRQ at 2007-9-8 >
