T
Thomas Nielsen [AM Production A/S]
Hi there,
I have placed an Internet Explorer ActiveX placed on form, and a range of
buttons that are used to control the behavior of the IE control (navigate to
other pages, etc).
I would now also like to scroll the contents of the IE ActiveX - Preferably
i would like to be able to scroll each frame independantly.
Up untill now, I've been able to scroll up/down by doing this:
mshtml.IHTMLDocument2 doc =
(mshtml.IHTMLDocument2)this.axWebBrowser1.control.GetDocument();
hm = (mshtml.HTMLWindow2Class)doc.frames.item(ref tst);
hm.scrollBy(0, ScrollSpeed);
This works flawlessly when all frames in a frameset are placed on the same
domain - But if they're not, i get the DHTML "access is denied" error, due
to IE security restrictions.
Is there any other way I would be able to scroll the frames within the
ActiveX control?
Thanks
Thomas
I have placed an Internet Explorer ActiveX placed on form, and a range of
buttons that are used to control the behavior of the IE control (navigate to
other pages, etc).
I would now also like to scroll the contents of the IE ActiveX - Preferably
i would like to be able to scroll each frame independantly.
Up untill now, I've been able to scroll up/down by doing this:
mshtml.IHTMLDocument2 doc =
(mshtml.IHTMLDocument2)this.axWebBrowser1.control.GetDocument();
hm = (mshtml.HTMLWindow2Class)doc.frames.item(ref tst);
hm.scrollBy(0, ScrollSpeed);
This works flawlessly when all frames in a frameset are placed on the same
domain - But if they're not, i get the DHTML "access is denied" error, due
to IE security restrictions.
Is there any other way I would be able to scroll the frames within the
ActiveX control?
Thanks
Thomas