Yael,
This code won't even compile, as it will see the MyHost declaration,
thinking it is a constructor, and then realizing it is in a MatarotHost
class declaration, will yield an error.
The GetIPictureDispFromPicture is a protected method, so it is only
exposed internally to classes that derive from AxHost.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Yael" <Ya**@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
public class MatarotHost : AxHost
{
public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MyHost.GetIPictureDispFromPicture(im age);
}
}
Why I don't have in AxHost GetIPictureDispFromPicture method?
I have only in MyHost.
I'm using vs.net 2003