Results 1 to 7 of 7

Thread: default web browser

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Sydney
    Posts
    9

    Question default web browser

    hi, how can I launch the default web browser on a system from a vb.net program?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Basically, you are going to have your app open a html document or something. The default browser will show automatically.

    I don't have the code to do that, I will look around for it though. In VB6 is was the ShellExecute API function.

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Here you go, you might have to change the folder that the exe is in for your computer...

    Shell("C:\Program Files\Internet Explorer\IExplore.exe", AppWinStyle.NormalFocus)

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Sorry that doesn't launch the default browser, but maybe it gets you started.

  5. #5
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    this works on my comp... I think it would still work if you have a browser other than IE. But still it shouldnt be the best way

    VB Code:
    1. Dim p As New Process()
    2.         p.Start("http://www.yahoo.com")

  6. #6
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    im sure it will work

  7. #7

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Sydney
    Posts
    9

    Thumbs up

    thanks MrPolite

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