473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Help: ImageList.TransparentColor

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
1 1047
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: stan | last post by:
Hello All, I got the following exception when i tried to add 4000 images to listview with the image list. I am running the application in the windows 2000. It is working under the windows xp....
3
by: Minh | last post by:
I create a C# Project using Windows Application template, I add an imagelist to Form, and add icon to imagelist1. After that, I run Project, but an Exception has occured. I can fix it even...
3
by: Tony Lugg | last post by:
I have an application with a document management form. When users add documents to the form, I call the API function SHGetFileInfo to get the associated large and small icons for the file. These...
4
by: David | last post by:
I have a problem that just cropped up with using an ImageList in my project I am using VB .NET 200 Problem: I have existing Form with 2 Image List controls. ImageList16 (for 16x16 Images) and...
5
by: Vittorio Pavesi | last post by:
Hello, I'm experiencing error displaying PNG images with transparent background using ImageList; the picture is displayed in a wrong way. Picturebox doesn't seem to be affected by this problem. I...
2
by: Diarmuid | last post by:
I wish to use some of the icons in VS2005ImageLibrary\bitmaps However, they all come up with a pink background. If the set the TransparentColor of my Imagelist, will that hide the pink? What...
0
by: gene kelley | last post by:
(using VS2005) I want to add an icon to TreeView nodes. 1) To a new project (VB or C#) I add a sample TreeView with some sample nodes. I add an ImageList component, and add one icon image. I...
10
by: Paul E Collins | last post by:
I want to fill an ImageList with bitmaps for a ListView from another thread, because it's a time-consuming process. I expect the ListViewItems' images to "load" one by one, as in a Web browser. ...
0
by: svx | last post by:
Hello, I am painting individual rows in a ListView control with different colors, depending on state. I am also using a SmallImageList in Detail view. When I set the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.