title: VB.Net - Getting a string/value of a element html?
body: <p>I'm having a slight issue trying to get string from a element on a website.</p>
  
  <p><strong>What I'm aiming for</strong>:
  Basically i'm trying to get a string/value from a website and make it go into a TextBox.text or label even. 
  There isn't much exmaples but I'm not experienced in this area, well in getting/grabbing elements from websites and returning the values into boxes or lables!</p>
  
  <p>But this is what I have so far.</p>
  
  <pre><code>Imports System.Net
  Imports System.Collections.Specialized
  
   Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
  
      On Error Resume Next
      'Web String
      Dim ws As New WebClient
      Dim data As String = ws.DownloadString("http://www.ip-tracker.org/locator/ip-lookup.php?ip=" &amp; TextBox1.Text)
  
      'IP
      Dim IP As String = Split(data, "&lt;th&gt;IP Address:&lt;/th&gt;")(1)
  
      IP = Split(IP, "&lt;div style=")(0)
      'If IP = Nothing Then
      'IP = "Unknown"
      'End If
      IPLabel.Text = (IP)
  
  End Sub
  </code></pre>
  
  <p>If any one can help me out on this that would be great!</p>
  
  <p>Thanks in Advanced if anyone can help me out,</p>
  
  <p>Sirmajor</p>