I am just starting out with AxWebBrowser and need help with a simple
application. I just want to navigate to a web page, then read in
source code. Here's what I have so far:
Private Sub Form1_Load(ByVa l sender As System.Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
AxWebBrowser1.N avigate("http://www.google.com" )
End Sub
Private Sub AxWebBrowser1_D ocumentComplete (ByVal sender As Object,
ByVal e As AxSHDocVw.DWebB rowserEvents2_D ocumentComplete Event)
' what do I put here to grab the source code?
End Sub
Could someone please provide a snippet of code (along with any
references I might need to add) that would load the page's source code
into a string?
application. I just want to navigate to a web page, then read in
source code. Here's what I have so far:
Private Sub Form1_Load(ByVa l sender As System.Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
AxWebBrowser1.N avigate("http://www.google.com" )
End Sub
Private Sub AxWebBrowser1_D ocumentComplete (ByVal sender As Object,
ByVal e As AxSHDocVw.DWebB rowserEvents2_D ocumentComplete Event)
' what do I put here to grab the source code?
End Sub
Could someone please provide a snippet of code (along with any
references I might need to add) that would load the page's source code
into a string?
Comment