What's the best way to open a HYPERLINK?

What's the best way to open a HYPERLINK from VB ???

Comments

  • : What's the best way to open a HYPERLINK from VB ???
    :
    This a silly lil macro i wrote to search codehound, this works for me :O)


    Sub SearchCodeHound()
    Dim tmp As String = "www.codehound.com/vb/results/results.asp?Q="
    Dim Sel As String
    Dim IE As String = "C:Program FilesInternet ExplorerIEXPLORE.EXE "
    Try
    Sel = DTE.ActiveDocument.Selection.Text.ToString
    tmp &= Sel

    Dim NewProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
    NewProcess.Start(IE, tmp)
    Catch e As System.Exception
    If (Sel = "") Then
    Throw New System.Exception("Hey STUPID, ya gota select something to search for first!")
    Else
    Microsoft.VisualBasic.MsgBox(e.Message, MsgBoxStyle.Critical, "Your an IDIOT!")
    End If
    End Try

    End Sub
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion