Here is some code from one of my routines that takes the URL in a text box
(e.g.
http://www.IMB.com) and returns the underlying HTML for the URL as the
string S below.
Dim URL As String = Trim(Me.txtURL.Text)
Dim wreq As System.Net.HttpWebRequest
wreq = CType(System.Net.WebRequest.Create(URL),
System.Net.HttpWebRequest)
Dim response As System.Net.HttpWebResponse = wreq.GetResponse
Dim encode As System.Text.Encoding =
System.Text.Encoding.GetEncoding("utf-8")
Dim readStream As New
System.IO.StreamReader(response.GetResponseStream, encode)
Dim S As String = readStream.ReadToEnd
readStream.Close()
readStream = Nothing
response.Close()
response = Nothing
Me.txtPage.Text = S
wreq = Nothing
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've Used inet Control at vb 6.0
> But in .NET, I Can't fint that.
> Anyone can help me?
>