Hi,
I have troubles with transparent icons in a TreeView. Looked into some threads here but yet didn't understand.
Have transparent gif and png bitmaps in project resource file Resources.resx.The Bitmap objects can be referenced by static members like "Resources.image1", am creating Image's and adding them to a TreeView.ImageList like this
Image img = Image.FromHbitmap( Resources.image1.GetHbitmap() );
treeView.ImageList.Add( img );
But the images are not displayed correctly, it seems that regardless of the ImageList.TransparentColor, .ImageSize and .ColorDepth settings which I was experimenting with, the transparent color is replaced by a 0x000000CC blue. EDIT: the transparent color in the original files is a 0x00000000, which I was also settingexplicitlyto ImageList.TransparentColor
If I use the same images with some other components that support a Image property and initialize that from the designer, the transparency is all right.
.NET3.5, WinXP
Please, what could be wrong?
Thanks