Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. open a website from a windows application in any browser

open a website from a windows application in any browser

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sebastian T Xavier
    wrote on last edited by
    #1

    Hi How can I open a website from a windows application in any browser Thanks Sebastian

    C D 2 Replies Last reply
    0
    • S Sebastian T Xavier

      Hi How can I open a website from a windows application in any browser Thanks Sebastian

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      By using Process.Start with a URL, you can launch the default browser. To specify the browser, you'd need to find the exe on the HDD and know how to launch it with a URL.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • S Sebastian T Xavier

        Hi How can I open a website from a windows application in any browser Thanks Sebastian

        D Offline
        D Offline
        dmex
        wrote on last edited by
        #3

        Actually...This will launch any default browser at the URL you specify Private Sub LaunchURL(byval URL as String) Try Process.Start(URL) Catch ex as exception End Try End Sub You can then use: LaunchURL("http://urlhere") from anywhere within your code.. The Try is needed because some browsers like Firefox will sometimes return an error for no reason... Steven

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups