500pts: Assigning an icon to a form from Imagelist looses transparency.
Posted on 2006-11-28
Can anyone help, i am using the following code to convert a bitmap with transparency that is stored in a ImageList to an icon for use on my form...
Here is the code, but for some reason where the icons looks really nice in windows explorer, imagelist etc... when i pull it into my form it shows a thick blue colour where the transparency was supposed to be...
this.Icon = Icon.FromHandle(((Bitmap)ImageList1.Images).GetHicon());
Does anyone know a work around for this
Thanks in advance