TastyTeo
Member
- Joined
- May 31, 2011
- Messages
- 15
- Programming Experience
- 1-3
I learned to do this with Value's and Input Boxes, but this one is more difficult.
Let's say i have webbrowser1 in my project where the url is on a site which has html like this
I Want when i press a button to execute a code which will look something like this
TextBox2.Text = WebBrowser1.Document.GetElementById("channel-box-item-count").InnerText
I WANT THIS CODE TO GET THE NUMBER 2183 INTO THE TEXTBOX
So what do i make wrong here?
Let's say i have webbrowser1 in my project where the url is on a site which has html like this
VB.NET:
<form id="edit_form_user_friends" name="edit_form_user_friends">
<div class="box-title title-text-color">Friends (<span name="channel-box-item-count">2183</span>)
</div>
</form>
I Want when i press a button to execute a code which will look something like this
TextBox2.Text = WebBrowser1.Document.GetElementById("channel-box-item-count").InnerText
I WANT THIS CODE TO GET THE NUMBER 2183 INTO THE TEXTBOX
So what do i make wrong here?