Load text from webpage into listbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cminsoft
    New Member
    • Aug 2017
    • 1

    Load text from webpage into listbox

    Hi everyone, as per above I am wanting to load text from a webpage into a listbox. from there I would select the exact text that I need for my project.

    Is there anybody out there that can help me with this??

    I am using vb2008 or vb2010
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You should check out the WebRequest Class. It is a class used to retrieve data from the internet (like a browser but not in a browser)

    The link I posted is the documentation for the class. The documentation includes details about what the class does, how to use it and code examples for you to check out.

    Comment

    • SioSio
      Contributor
      • Dec 2019
      • 272

      #3
      Code:
      'Imports System.Net
      
      Dim client As WebClient = New WebClient()
      Dim reply As string = client.DownloadString ("https://www.google.com/")
      Last edited by gits; Dec 17 '19, 09:03 AM. Reason: use code tags!

      Comment

      Working...