Public Class Form1 Private Sub WebBrowser1_NewWindow(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow e.Cancel = True Dim url As String = sender.Document.ActiveElement.GetAttribute("href") Process.Start(Application.ExecutablePath, url) End Sub Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load If My.Application.CommandLineArgs.Count = 0 Then Return End If Dim url As String = My.Application.CommandLineArgs(0) WebBrowser1.Navigate(url) End Sub End Class