C
Chris Soulsby
Hi,
I've wrote a AxWebBrowser control to display html interfaces in my
application. This works fine, however, I would like to load images from my
application's resources instead of saving them to file then referencing that
file. For example:
in the HTML i'd have a image like this <img src="test.jpg" id="test"> and
then
mshtml.IHTMLDocument2 oIHTMLDocument2 = this.m_oHtmlBrowserControl.Document;
for(int x = 0; x < oIHTMLDocument2.images.length; x++)
{
mshtml.HTMLImgClass o =
(mshtml.HTMLImgClass)oIHTMLDocument2.images.item(x,0);
if(o.id == "test")
{
// *********** load image from resources **********************
}
}
Has anyone done anything like this before? Can you help?
Thanks for any help
Chris
I've wrote a AxWebBrowser control to display html interfaces in my
application. This works fine, however, I would like to load images from my
application's resources instead of saving them to file then referencing that
file. For example:
in the HTML i'd have a image like this <img src="test.jpg" id="test"> and
then
mshtml.IHTMLDocument2 oIHTMLDocument2 = this.m_oHtmlBrowserControl.Document;
for(int x = 0; x < oIHTMLDocument2.images.length; x++)
{
mshtml.HTMLImgClass o =
(mshtml.HTMLImgClass)oIHTMLDocument2.images.item(x,0);
if(o.id == "test")
{
// *********** load image from resources **********************
}
}
Has anyone done anything like this before? Can you help?
Thanks for any help
Chris