473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

IPictureDisp in C#

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
Nov 15 '05 #1
1 6376
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.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"john" <jo**@john.com> wrote in message
news:0e****************************@phx.gbl...
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


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Frank Oquendo | last post by:
I'm developing an addin for an application. All interaction takes place via COM. I've had no luck trying to associate an icon with a UI element such as a button within the host application. So I...
0
by: Shao | last post by:
I am using VS.Net 2003 and I need to create a IPictureDisp pointer that points to a picture object. IPictureDisp *pd; PICTDESC pdesc; memset(&pdesc,0,sizeof(pdesc)); pdesc.cbSizeofstruct =...
2
by: Map Reader | last post by:
Greetings, I am converting an old VB6 application to use .NET. One of the old controls loads icons from the disk and displays them. However, the transparent color turns to blue somewhere in the...
0
by: Pedro Hurtado | last post by:
I am using (Microsoft Office Document Imaging 11.0 Type Library) and I have the following problem: The method (Microsoft Office Document Imaging 11.0 Type Library) of the interface IImage me an...
0
by: =?Utf-8?B?WWFlbA==?= | last post by:
I have com a add-in for outlook 2003 in c# vs.net 2003. there I add this class for display icon in my add-in button: In some computer this add-in running currect, but in one computer this add-in...
3
by: =?Utf-8?B?WWFlbA==?= | last post by:
public class MatarotHost : AxHost { public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ } public IPictureDisp GetIPictureDispOfPicture(Image image) { return...
4
by: =?Utf-8?B?WWFlbA==?= | last post by:
Hi, com add-in vs.net 2003 & outlook 2003 & c# I need to access to protected method of AxHost, How can I do this? I get nothing after the dot (base.), Why? This is my code: I need to set icon on...
1
by: =?Utf-8?B?WWFlbA==?= | last post by:
Hi, I have problem is with return stdole.IPictureDisp in this method if the computer don't have vs.net installed. I created a com add-in for outlook 2003 in vs.net 2003 c#. if I calling...
0
by: =?Utf-8?B?WWFlbA==?= | last post by:
I created a com add-in for outlook 2003 in vs.net 2003 c#. My problem is with return type stdole.IPictureDisp. if I calling stdole.IPictureDisp Pic =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.