Downloading a web page in Visual Basic 2008
Microcontrolled
Posts: 2,461
I am wondering how I should download a webpage in VB 2008 given the URL in·a string format and outputing the downloaded webpage (html & other script) in a string format as well. Can someone tell me how this should be done?
Thanks,
Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Thanks,
Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Comments
The following is all the code needed for a simple example
type the url in textbox1 and click button1
Jeff T.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Post Edited (Microcontrolled) : 4/24/2010 11:30:17 PM GMT
Right click on the toolbox area
Select "Choose Items..."
Under the ".NET Framwork Components" tab scroll down to WebBrowser
Place a check in the checkbox and click OK
Jeff T.