Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i want all hyperlinks in a particular website to open in default browser instead of IE. some solutions i found were close but dint work for me. (Process.Start or shell thing is not working for me)

below is the code i am using.

Thanks in advance.

VB
Try
        If IsConnectionAvailable("http://google.com") = True Then
            MapBrowser.Navigate("http://localhost")
            '  Me.BackgroundImage = System.Drawing.Image.FromFile(ImgBackground)
        Else
            MapBrowser.Navigate("http://yahoo.com")
          Timer4.Start()
        End If

    Catch ex As Exception
        MsgBox(ex.Message())
    End Try
Posted
Comments
Bernhard Hiller 28-Nov-12 3:59am    
What does that "Process.Start or shell thing is not working for me" mean? Do you get error messages?
Ezra Neil 3-Jan-13 6:03am    
I think Process.Start does open url in your default browser. If it open in IE then IE is your default browser. You have to change it manually.

If you want to control which browser it will use then that will require different solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900