simpleonlinetester
Member
- Joined
- Apr 13, 2011
- Messages
- 19
- Programming Experience
- Beginner
How can I sync my selection when I select someone on the web page to automatically select the location of the element in the source code?
Here is what I have as far as the split screen goes.
Any ideas on how to select text on at least the web page and show it in the source code?
Thanks
Here is what I have as far as the split screen goes.
VB.NET:
ublic Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(TextBox2.Text)
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Dim Viewer As String
Viewer = WebBrowser1.DocumentText
TextBox1.Text = Viewer
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.GoBack()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WebBrowser1.GoForward()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.GoHome()
End Sub
End Class
Any ideas on how to select text on at least the web page and show it in the source code?
Thanks