Execute a url-VBForums
Results 1 to 6 of 6

Thread: Execute a url

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    69

    Execute a url

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

  2. #2
    Member
    Join Date
    Aug 2012
    Posts
    60

    Re: Execute a url


  3. #3
    Member
    Join Date
    Aug 2012
    Posts
    60

    Re: Execute a url


  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    88,941

    Re: Execute a url

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

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    69

    Re: Execute a url

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

  6. #6
    Member
    Join Date
    Aug 2012
    Posts
    60

    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.