hi,

currently i am developing an addin application using vb.net. does anyone know how to set command image/icon? i know 2 ways that might work but i just dont know the right way.

First, by setting the MsoButton parameter of the function AddNamedCommand to False and set the bitmap parameter to the image ID of a VISUAL C++.NET DLL resource file. My problem is how to create a resource file that resides in dll file and must be written in VC++.NET.

Secondly, perhaps by setting Picture property of command object(convert to CommandBarButton) to the desired image of IPictureDisp interface. My problem is how to get the IPictureDisp object/interface from a file.

Thank for your help.