- Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(TextBox1.Text)
Dim response As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim sourcecode As String = sr.ReadToEnd()
TextBox2.Text = sourcecode
End Sub
End Class
To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.
If you do not wish to register at all, that's fine but there will be more advertisements. :/
You can probably see and download most content provided for regular members even without an account.
Your contributions will be greatly appreciated though, give it a shot and register today!
Join the forum, it's quick and easy