Results 1 to 6 of 6

Thread: Execute a url

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    87

    Execute a url

    Simple question: How do you execute a url say "http://www.site.com" from Visual Basic code.

  2. #2
    Lively Member
    Join Date
    Aug 2012
    Posts
    75

    Re: Execute a url


  3. #3
    Lively Member
    Join Date
    Aug 2012
    Posts
    75

    Re: Execute a url


  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Execute a url

    Calling Process.Start is the effective equivalent of opening a command prompt and typing a command.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    87

    Re: Execute a url

    I would like to bring the url up in a new browser.

  6. #6
    Lively Member
    Join Date
    Aug 2012
    Posts
    75

    Re: Execute a url

    In a new browser? Does it have to be users default browser?

    In this case the easiest way to navigate the user's default Internet browser to a specified URL is to call System.Diagnostics.Process.Start(string).

    for example

    Code:
    Process.Start("http://www.logos.com/");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width