Y
Yael
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 commandBarButton:
I need to get this:
return(stdole.IPictureDisp)base.GetIPictureDispFromPicture(image);
Thank you.
using System;
using System.Drawing;
using System.Windows.Forms;
using stdole;
namespace MatarotToolbar
{
internal class MatarotHost : AxHost
{
public MatarotHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public static stdole.IPictureDisp ImageToIPicture(Image image)
{
return(stdole.IPictureDisp)MatarotHost.GetIPictureDispFromPicture(image);
}
public static System.Drawing.Image IPictureToImage(stdole.IPictureDisp
picture)
{
return MatarotHost.GetPictureFromIPicture(picture);
}
// static public stdole.IPictureDisp ImageToPictureDisp(Image image)
// {
// return (stdole.IPictureDisp)GetIPictureDispFromPicture(image);
// }
//
// static public stdole.IPictureDisp IconToPictureDisp(Icon icon)
// {
// return ImageToPictureDisp(icon.ToBitmap());
// }
// public new static IPictureDisp GetIPictureDispFromPicture(Image image)
// {
// return (IPictureDisp)AxHost.GetIPictureDispFromPicture(image);
// }
// public IPictureDisp GetIPictureDispOfPicture(Image image)
//{
// return (IPictureDisp)MatarotHost.GetIPictureDispFromPicture(image);
// }
// public static stdole.IPictureDisp ImageToIpicture(System.Drawing.Image
image)
// {
// return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFromPicture(image);
// }
//
// public static System.Drawing.Image IPictureToImage(stdole.StdPicture
picture)
// {
// return GetPictureFromIPicture(picture);
// }
}
}
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 commandBarButton:
I need to get this:
return(stdole.IPictureDisp)base.GetIPictureDispFromPicture(image);
Thank you.
using System;
using System.Drawing;
using System.Windows.Forms;
using stdole;
namespace MatarotToolbar
{
internal class MatarotHost : AxHost
{
public MatarotHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public static stdole.IPictureDisp ImageToIPicture(Image image)
{
return(stdole.IPictureDisp)MatarotHost.GetIPictureDispFromPicture(image);
}
public static System.Drawing.Image IPictureToImage(stdole.IPictureDisp
picture)
{
return MatarotHost.GetPictureFromIPicture(picture);
}
// static public stdole.IPictureDisp ImageToPictureDisp(Image image)
// {
// return (stdole.IPictureDisp)GetIPictureDispFromPicture(image);
// }
//
// static public stdole.IPictureDisp IconToPictureDisp(Icon icon)
// {
// return ImageToPictureDisp(icon.ToBitmap());
// }
// public new static IPictureDisp GetIPictureDispFromPicture(Image image)
// {
// return (IPictureDisp)AxHost.GetIPictureDispFromPicture(image);
// }
// public IPictureDisp GetIPictureDispOfPicture(Image image)
//{
// return (IPictureDisp)MatarotHost.GetIPictureDispFromPicture(image);
// }
// public static stdole.IPictureDisp ImageToIpicture(System.Drawing.Image
image)
// {
// return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFromPicture(image);
// }
//
// public static System.Drawing.Image IPictureToImage(stdole.StdPicture
picture)
// {
// return GetPictureFromIPicture(picture);
// }
}
}