ok, i'm having some problems getting the html source from my webbrowser control. I'm trying to get the source in the DocumentCompleted event of the webbrowser. The code i'm using is this
Dim myHTML As String = wbNav.DocumentText
Debug.Print(myHTML)
When the vb.net hits that line i get this error "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)" it's a FileNotFoundException error. I've searched google, and everyone says to use this code. But it's just not working out for me. Is there another way to get the html? or is something wrong with this code?
Dim myHTML As String = wbNav.DocumentText
Debug.Print(myHTML)
When the vb.net hits that line i get this error "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)" it's a FileNotFoundException error. I've searched google, and everyone says to use this code. But it's just not working out for me. Is there another way to get the html? or is something wrong with this code?