Re: AxSHDocVw.AxWebBrowser or System.Windows.Forms.WebBrowser?




Igor Tandetnik wrote:
jwflutterby <jwflutterby@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"Igor Tandetnik" wrote:

"jwflutterby" <jwflutterby@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:D4DEB121-EBC2-4C98-8E25-60E5BCA2CE3E@xxxxxxxxxxxxx
I
was able to get the AxWebBrowser.Document as a mshtml.IHTMLDocument2
and I was able to get ParentWindow.frames but even though it says
the type is mshtml.FramesCollection, when I try to use For Each ...
In I get an error that mshtml.FramesCollection is not a collections
type?????

It has length property and item(int k) method. Just use a regular
indexed loop.

I was going to try that as well but I got stuck trying to cycle
through the items, I tried just looping through using item(intIndex)
but it didn't like that intIndex was an Int, it wanted an object???

On COM side, it's a VARIANT that can contain either an integer index, or
a string (an element ID). I have no idea how this should be set up on
.NET side.

It acted like all it would accept was an element ID, but it is entirely
possible I was doing something wrong because this was completely new to
me. Oh well, I've pretty much decided to stick with the regular
WebBrowser but thank you for your help!

Jenni

.