Yeah, this is a pretty simple process.
You use the WebBrowser's document property to get the actual the HTML
document into an IHTMLDocument2 interface.
So it'll be something like this:
IHTMLDocument2 idoc = wb.document;
Then with the interface, you can get access to the body HTML using
string source = idoc.body.innerHTML;
But as i re-read your post, I notice the above solution only gives the
<body> HTML as opposed to the entire source. I've never really had to
do that before, but the above will give a start on what you'll need to
do. I imagine it's not much more difficult.
On Thu, 4 Dec 2003 23:05:13 +1100, "Muscha" <mu****@no.spam.net>
wrote:
Hi,
Is there a way to get the current content of the web browser control? As in
the browser is the "View Source" functionality?
thanks.
/m