VB.net open website

Discussion in 'Programming' started by webmasterplace, Apr 5, 2010.

  1. #1
    How can I open a list of websites with VB and immediately close them after they have been fully loaded?

    Example:
    I have a list of 3 websites: site1.com, site2.com, site3.com

    *VB script starts*
    site1.com loading
    site1.com loaded
    site1.com closed
    -
    site2.com loading
    site2.com loaded
    site2.com closed
    -
    site3.com loading
    site3.com loaded
    site3.com closed
    -
    *VB script stops*

    My goal is to open a list of about 100 websites, so I don't want that all websites all being loaded at once.
     
    webmasterplace, Apr 5, 2010 IP
  2. brian65

    brian65 Active Member

    Messages:
    1,172
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #2
    You could use a WebBrowser control in VB.Net. To load a website call the Navigate method on the control and handle the WebBrowserCompleted event to know when the site is loaded.
     
    brian65, Apr 7, 2010 IP