By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,033 Members | 1,285 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,033 IT Pros & Developers. It's quick & easy.

Help: ImageList.TransparentColor

P: n/a
Hi All,

I have a ImageList associated with the treeview on one of my forms. The
treeview itself is contained within a Panel.

I set the TransparentColor property of my ImageList to
System.Drawing.Color.Lime in order to mask (have the color treated as
transparent) the Lime color

///
Me.imgItems.TransparentColor = Color.LimeGreen
\\\

However this doesn't appear to work. The specific green color is still
visible!

I would appreciate your comments on this.

TIA.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Sarika" <Sa****@discussions.microsoft.com> schrieb:
I set the TransparentColor property of my ImageList to
System.Drawing.Color.Lime in order to mask (have the color treated as
transparent) the Lime color

///
Me.imgItems.TransparentColor = Color.LimeGreen
\\\

However this doesn't appear to work. The specific green color is still
visible!


Maybe the color in the images is not exactly 'Color.LimeGreen'. You may
want to set 'TransparentColor' to a color generated using 'Color.FromArgb'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.