WebBrowser Control Frame Documents

N

Nick

Hi there,

I'm having great difficulty obtaining all of the document data for a
framed HTML document.

Once the documentcomplete event has fired for the last time I am
analysing the webbrowsers document property. Unfortunately in a framed HTML
document this is merely the frame set description, and does not contain the
HTML data for the contained frames.

So my question is, if I navigate to an HTML page that consists of 2
frames, how do I get the document objects for the 2 HTML documents contained
within those frames?

Thanks loads in advance!

Nick.
 
C

Cor Ligthert [MVP]

Nick,

I have the same question, I have placed the question as well somewhere else.

Cor
 
C

Cor Ligthert [MVP]

Before I misunderstood you, I mean with the 2.0 Net webbrowser.

With other ones there is the Downloadcomplete event which tells that
everything is downloaded.

Cor
 
N

NickP

Hi Cor,

Yup that's exactly what I'm after too!

Snap! haha.

I'll keep you posted if I find anything also. It's a great control but
one thing I think is a bit blind is the inability to clone the HTML document
object, unless I'm missing something...

Anyway, good luck, let me know if you find anything!

Nick.
 
C

Cor Ligthert [MVP]

Nick,

If I hear something and remember it me, than I let you know (I have your
email address).

Cor
 
N

NickP

Cheers Cor,

That's much appreciated.

Nick.

Cor Ligthert said:
Nick,

If I hear something and remember it me, than I let you know (I have your
email address).

Cor
 
N

NickP

Hi AMDRIT,

Thanks for your help...

<webbrowser>.Document.Window.Frames

This indeed holds a collection to the frames of the document, just what
I was looking for, thanks. My only problem at current is now getting each
document object without experiencing a security exception. I seem to be
able to get the one at index 0, but not 1. Strange...

Anyway, thanks it's much appreciated.

Nick
 
N

NickP

Hi there,

Now that *is* crazy, so even though the data has downloaded and I can
view it by right clicking the frame and then "view source", I have no other
form of access to it? Maybe there is a way to derive a new control which
exposes this information in another way...

Thanks loads for your help!

Nick.
 
C

Cor Ligthert [MVP]

Nick,

As I thought it was, this part is very old in my opinion, with the idea that
this could not be it.

I forgot to try it, but am glad you did it.

:)))

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top