[Vb.net] Get source[Solved]

Posts 1–5 of 5 · Page 1 of 1
[Vb.net] Get source[Solved]
What is the code to get source of webpage using webbrowser?
Richtextbox1.text = Webbrowser1.Document.Body.InnerHtml
The solution that lolland presented will only get the source of the single frame of the web-browser. And it will not even include anything before <body> tags. A good approach will be to use:

Code:
Richtextbox1.text = WebBrowser1.DocumentText
Because in-case if you need to parse the complete page, this line would be better. Anyways, depends upon your usage
Quote Originally Posted by Lolland View Post
Richtextbox1.text = Webbrowser1.Document.Body.InnerHtml
ty, it's usefull, i need it!
Marked Solved, Avoid Posting in Unless < 7 days and/or necessary
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us