12-01-2010, 12:15 PM
(11-04-2010, 06:01 AM)Marik™ Wrote: The dude obviously tried and made one of his first applications. Cut him some slack please.
And just for the record, it's:
And for the save button:Code:textbox1.text = webbrowser1.documenttext
I wrote this offhand, there might be some errors though.Code:Dim walla as system.io.streamwriter("C:\WAlla.txt")
walla.write(textbox1.text)
walla.dispose
Not quite... i believe he said HttpWebRequest is what he used, not a WebBrowser.
Code:
Dim wr As HttpWebRequest = HttpWebRequest.Create("http://www.google.com")
Dim response As HttpWebResponse = wr.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim source As String = sr.ReadToEnd()
TextBox1.Text = source
I like to use WebClient in my apps
Code:
Dim wc As WebClient = New WebClient
TextBox1.Text = wc.DownloadString("http://www.google.com")
dont forget to add
Imports System.Net
I code at http://tech.reboot.pro