Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

VS 2008 Copy text from a website ?

$
0
0
Hello guys i want to copy a text from a webpage.. BUT it is like this

Name:  screenshot_18.png
Views: 95
Size:  7.5 KB

I was triying something like this:
Code:

textbox2.text = webbrowser1.document.getelemtbyid("meltmail")
But i get that a webbrowser cannot get converted to a string something like that.. So... Anyone can help me guys ? Thanks in advanced
Sorry my bad english.


EDIT1: Searching and searching i foun this.. and it dont show me if i did it fine or no. because it start after the page loads completely.. This is the code that i use

Code:

For Each element As HtmlElement In Me.WebBrowser1.Document.GetElementsByTagName("div")
            If element.GetAttribute("className") = "meltmail" Then
                Dim str As String = "HELLO"
                MessageBox.Show(str)
            End If
        Next

EDIT2: FOUND THE SOLUTION!!!...
Ok... Now is there a way to copy that text and paste it into a richtextbox1 ? Is there a way ? something like
Code:

clipboard.copy
aweofiwaeifoja
aoeifajf

?? SOmething like that ? Thanks in advanced guys.


EDIT3: THANKS GUYS I SOLVE ALL. THANKS.
Attached Images
 

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>