Jump to content


Treeview and transparent node image

- - - - -

  • Please log in to reply
2 replies to this topic

#1
_teo79__

_teo79__

    Newbie

  • Members
  • Pip
  • 7 posts
Hi
In my app i've a treeview associated with an imagelist. Some of the image that i woul use in the treeview has som transparency.
but the treeview seem to not support the transparency.

tere's a chance to get it work or is "by design" of the treeview?

thanks

teo


#2
Peter Foot

Peter Foot

    Regular

  • Members
  • PipPip
  • 83 posts
  • Location:Birmingham, UK
  • Interests:.NETCF, Photography, Walkies
  • Devices:HTC S620
The problem is with the VS IDE itself. When you add icons to the imagelist, they are added as Bitmaps and loose their transparency. The workaround is to add the icons to your imagelist via code after the InitializeComponent call in your form constructor.

Peter Foot
Windows Embedded MVP
www.inthehand.com | www.peterfoot.net

#3
_teo79__

_teo79__

    Newbie

  • Members
  • Pip
  • 7 posts
thaks for ur reply, now it works!

bye

teo





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users