Question How do i get YouTube Subscribers count into TextBox?

TastyTeo

Member
Joined
May 31, 2011
Messages
15
Programming Experience
1-3
Hello, i tried getting the YouTube Subscribers count to show up on a textbox, when i click on Button. but i seem to make something wrong. the mistake is at the VALUE but i have no idea what to change it into. There is no value, there is just plain text on the page, is there any way i can get this text to show up on my textbox???

Partial Code:
VB.NET:
Dim SubCount As String = WebBrowser1.Document.GetElementById("profile_show_subscriber_count").GetAttribute("value").ToString
        TextBox2.Text = SubCount.ToString
 
Use this instead:

VB.NET:
Dim SubCount As String = WebBrowser1.Document.GetElementById("profile_show_subscriber_count").InnerText

The reason for this is that there is no "value" property, it is a div.
 
Back
Top