Notification icons from an imagelist?

  • Thread starter Thread starter Earl
  • Start date Start date
E

Earl

Is it possible to set the notification.icon property from an imagelist? I
suppose the real question might be, how to convert the image value to an
icon value since that is not a valid cast?
 
I found a ghastly fix for this, surely this is not *the* answer?

Dim iconBitmap as new Bitmap = imgStatus.Images(0)
notification.icon = Icon.FromHandle(iconBitmap.GetHbitmap)
 
Back
Top