Hello, I need to put icons in a vb.net menu. The icons are in a AxImageList called Images, so when i have to extract an icon i do Images.ListImages("name").ExtractIcon but this method returns a stdole.IPictureDisp.
The problem is that i have a class to put the icons in the menu which receives as parameter a System.Drawing.Icon not a stole.IPictureDisp.
Please, how can i convert the icon in the stdole.IPictureDisp format in a System.Drawing.Icon????
I tried to use a CType but VB.net says that is a restrictive conversion and when i run the app the icon doesn't appear.
The problem is that i have a class to put the icons in the menu which receives as parameter a System.Drawing.Icon not a stole.IPictureDisp.
Please, how can i convert the icon in the stdole.IPictureDisp format in a System.Drawing.Icon????
I tried to use a CType but VB.net says that is a restrictive conversion and when i run the app the icon doesn't appear.