Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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.
 
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 27-Nov-12 9:17am
Comments
Bernhard Hiller at 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 at 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)

  Print Answers RSS
0 OriginalGriff 278
1 Nguyen.H.H.Dang 230
2 Maciej Los 205
3 Peter Leow 195
4 arvind mepani 187


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid