hi,

The page we have opened (e.g www.daniweb.com) and after we are login in to it then after typing the address in the address bar their is a change in the url. Here we copy the address and we are giving that now then the html source what we have before logined.herewith i have attached my code with this..

Imports System.IO
Imports System.Net
Imports System.Text

Public Class Form1

Public Sub submitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submitButton.Click
Dim Str As System.IO.Stream
Dim srRead As System.IO.StreamReader

Dim nullObject As System.Object = 0
Dim str1 As String = "http://" & ipaddressTextBox.Text

Dim nullObjStr As System.Object = str1
Cursor.Current = Cursors.WaitCursor
WebBrowser1.Navigate(str1) ', nullObject, nullObjStr, nullObjStr, nullObjStr)
Cursor.Current = Cursors.Default


Try

' make a Web request
Dim req As System.Net.WebRequest = System.Net.WebRequest.Create(str1)
Dim resp As System.Net.WebResponse = req.GetResponse
Str = resp.GetResponseStream
srRead = New System.IO.StreamReader(Str)
' read all the text

TextBox1.Text = srRead.ReadToEnd

Catch ex As Exception
TextBox1.Text = "Unable to download content"
Finally
' Close Stream and StreamReader when done
srRead.Close()
Str.Close()
End Try


End Sub

Private Sub calculate()


End Sub


Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Dim store As String

store = TextBox1.Text
TextBox2.Text = store

End Sub

End Class


Regards,
sreeram

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.