Howdy, Stranger!

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

Categories

What's the best way to open a HYPERLINK?

hyshys Member Posts: 75
What's the best way to open a HYPERLINK from VB ???

Comments

  • SlacquerSlacquer Member Posts: 4
    : 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
  • Justin BibJustin Bib USAMember Posts: 0

    ___ < http://forcoder.org /> free video tutorials and ebooks about | Visual Basic .NET Java MATLAB Assembly Ruby C Python Perl C++ C# Scratch Visual Basic PHP Delphi JavaScript Objective-C PL/SQL R Go Swift Julia Fortran Hack Rust Ada Logo COBOL Scala Erlang Dart D FoxPro Kotlin Crystal F# VBScript Lisp Clojure Prolog Bash Lua Apex SAS LabVIEW Alice Awk Scheme ML ABAP Transact-SQL | ______________

Sign In or Register to comment.