Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to extract the source code from an Url
Message
General information
Forum:
Visual Basic
Category:
Internet applications
Miscellaneous
Thread ID:
00610115
Message ID:
00610240
Views:
22
>Hi!
>
>I need to know how to extract the source of an html page, like if i were doing it with the right click of the mouse on the internet explorer (right click, view source)

You can use the WebBrowser control to do it easily.
Private Sub Command1_Click()
    WebBrowser1.Navigate2 Text1.Text
End Sub

Private Sub WebBrowser1_DownloadComplete()
    Debug.Print "WebBrowser1_DownloadComplete"
    MsgBox WebBrowser1.Document.documentelement.innerhtml
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform