473,507 Members | 4,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AxHost

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 not runing..I think it's something about this topic (AxHost).
Do you have any suggestion ?
This works on the majority of desktops less one computetr.
I don't get error, I just not see my addin.

public class MatarotHost : AxHost
{
public MatarotHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MatarotHost.GetIPictureDispFromPictu re(image);
}
}

Why I don't have this option in AxHost ?
AxHost.GetIPictureDispFromPicture(image);
I have only MatarotHost.GetIPictureDispFromPicture(image);
I tried all these: What is the currect method?

// public static new stdole.IPictureDisp
GetIPictureDispFromPicture(System.Drawing.Image image)
// {
// return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFr omPicture(image);
// }

// public static stdole.IPictureDisp ImageToIpicture(System.Drawing.Image
image)
// {
// return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFr omPicture(image);
// }

May 30 '07 #1
0 1516

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

Similar topics

2
2418
by: Kuba Florczyk | last post by:
Hi Do anybody know how to show ActiveX whitout AxHost? For example i got wrapper to ActiveX and now i don't know how AxHost shows ActiveX. I must do it, because i think AxHost made it wrong...
0
1439
by: Oculus | last post by:
Hi, Using AxImp /source I generated a wrapper class for one of my ActiveX controls that also implements a few other COM interfaces (I got the hotfix for KB886802 to even get this far) and it...
0
1453
by: Carlo Micieli | last post by:
Hello, I have a problem with an AxHost-derived class, this class represents a barcode for a thermal printer. To draw the barcode it expose a method call Draw() that receive as parameter a...
2
10444
by: Norvin Laudon | last post by:
Hi, I have a legacy ActiveX control (circa 1996) which I would like to use in a C# class, without using a form. I am getting an exception thrown when I try to set properties on the control:...
8
6792
by: Martijn Boven | last post by:
I created a activex control in c# (vs 2005) -------------------------------------------- public partial class ActiveTest : UserControl { public ActiveTest()
0
5288
by: Patel | last post by:
Hi All, I am doing one INTERESTING work with Context Menu Strip. I am trying to insert a custom control / .Net control in Context menu as a context menu strip. I tried inserting MonthCalender in...
3
4416
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...
0
1838
by: schao416 | last post by:
Hello all, I'm currently using an ActiveX control that has a property called OcxState that returns a value of type LONG. However, when I try to compile my app, the compiler says OcxState...
0
1012
by: vshra | last post by:
Hello anyone can guide me how to convert Byte Array to AxHost:State pointer?
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7105
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.