Hello NG,

I want to use icons with a transparent color. When I use this files, the
pictures are black (the transparent areas are black)!?
What can I do?

Karsten Baumann

Re: Icons? by Alex

Alex
Thu Apr 28 13:01:33 CDT 2005

Instead of placing your icons into your imagelists in the designer, load
them at runtime:

myImageList.Images.Add(new Icon(@"\path\to\youricon.ico");
or
myImageList.Images.Add(new
Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("Your.NameSpace.YourIcon.ico"));



--
Alex Feinman
---
Visit http://www.opennetcf.org
"Karsten Baumann" <news@kbaumann.de> wrote in message
news:eAhA3sBTFHA.3464@tk2msftngp13.phx.gbl...
> Hello NG,
>
> I want to use icons with a transparent color. When I use this files, the
> pictures are black (the transparent areas are black)!?
> What can I do?
>
> Karsten Baumann
>


Re: Icons? by Frank

Frank
Fri Apr 29 05:13:10 CDT 2005

Thu, 28 Apr 2005 19:54:03 +0200, Karsten Baumann:

> Hello NG,
>
> I want to use icons with a transparent color. When I use this files, the
> pictures are black (the transparent areas are black)!?
> What can I do?
>
> Karsten Baumann

I had the same problem at the beginning. I got this answerL
Use the ILC_COLOR | ILC_MASK flags on the image list.
--
Gruß | Greetings | Qapla'
"All I ask is a tall ship and a star to steer her by."
http://www.stud.tu-ilmenau.de/~frst-ii/

Re: Icons? by Karsten

Karsten
Fri Apr 29 09:02:05 CDT 2005

"Karsten Baumann" <news@kbaumann.de> schrieb im Newsbeitrag
news:eAhA3sBTFHA.3464@tk2msftngp13.phx.gbl...
> Hello NG,
> I want to use icons with a transparent color. When I use this files, the
> pictures are black (the transparent areas are black)!?
> What can I do?
> Karsten Baumann

Thank you mery much - it works...

Karsten Baumann