Fabian, Yes, it does. This is what I played with a lot yesterday. I saw some strange behavior with removing and adding images to the imagelist attached to the treeview, perhaps having to do with whenthe treeview redraws.
Thanks though for the comments. Peter -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Fabian Schmied Sent: Tuesday, May 13, 2008 3:05 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] programatically create treeview node image > I'm trying to come up with a good way to create (on-the-fly) a bitmap to > be used as an image for a treeview node. I need to create the bitmap to > be almost a thumbnail representation of changes a user makes to a much > larger picture. In fact, often, the bitmap shape will be the same but > it might be colored differently. I think I would simply use Graphics.DrawImage in a combination with a new Bitmap to create a miniature version of your larger picture, followed by a FillRectangle with a translucent brush of the required color (set the alpha channel to achieve translucency). Does that produce the effect you want? Fabian =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com