problem with adding icon to imagelist...

shaheed

Member
Joined
Jun 3, 2004
Messages
20
Programming Experience
1-3
hi...i m having very minor problem but cant figure out how to solve it...first i made my own icon using .NET IDE and add it to my project (by using "Add Existing Item" option)but when i try to add that icon in ImageList the error message appears that says:
"Bitmaps that are Icons can not be made transparent. Icons natively support transparency. Use the Icon constructor to create an Icon."
plz, can someone guide me in solving this problem?? i will be really grateful. thanks in advance.
 
Hi, Shaheed


I experience the same problem. Maybe you have changed some properties of the imagelist control.(Tranparent color)

I solved this by removing the imagelist control, and create a new (default) one.

Then the icons can be added smoothly.

Twoendy.
 
hi twoendy...thanks for the reply...yes u are right...i had changed the 'TransparentColor' property from Transparent to some other value; that is why i was getting that error msg...but later i found out the problem and changed the value of 'TransparentColor' property back to Transparent...anyway, take care...bubye...
 
Back
Top