IPictureDisp in C#

  • Thread starter Thread starter john
  • Start date Start date
J

john

I'm working on an add-in and one of the methods in the
extensibility model takes an object of type IPictureDisp.
How can i get this in .Net? I've tried loading up bitmap,
image and icon classes, and use those, but they dont
impelemt this interface.

has any one played with IPictureDisp in C#?
thanks,
John
 
Hi John,

There are several solutions. One of them that worked for me just yesterday
is this:

http://groups.yahoo.com/group/vsnetaddin/message/306

You might have to sign up at Yahoo to read the message, but I hope this is
not too much overhead :-)

Note: If you also want transparency for a CommandBarButton icon, you should
create a mask for the bitmap and obtain its IPictureDisp just the same way.

P.S. The microsoft.public.vsnet.ide newsgroup is more appropriate for
discussing add-in development-related issues.
 
Back
Top