: 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
Comments
:
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