i suppose you could also use the default browser value thats stored in the registry under this key ...
HKEY_CLASSES_ROOT\htmlfile\shell\open\command ( the ' Default ' key ) to open your browser with the default rather than IE
in that case i'd do something like this ...
VB Code:
[COLOR=Blue]Private Sub[/COLOR] Button1_Click([COLOR=Blue]ByVal[/COLOR] sender [COLOR=Blue]As[/COLOR] System.Object, [COLOR=Blue]ByVal[/COLOR] e [COLOR=Blue]As[/COLOR] System.EventArgs) [COLOR=Blue]Handles[/COLOR] Button1.Click
[COLOR=Green]'/// path to default webbrowser in registry...[/COLOR]
[COLOR=Blue]Dim[/COLOR] browserKey [COLOR=Blue]As[/COLOR] Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey("htmlfile\shell\open\command", [COLOR=Blue]False[/COLOR])
[COLOR=Green] '/// get the actuall path from between the " "[/COLOR]
[COLOR=Blue]Dim[/COLOR] defaultBrowser [COLOR=Blue]As String[/COLOR] = [COLOR=Blue]DirectCast[/COLOR](browserKey.GetValue([COLOR=Blue]Nothing[/COLOR], [COLOR=Blue]Nothing[/COLOR]), [COLOR=Blue]String[/COLOR]).Split([COLOR=Blue]Chr[/COLOR](34))(1)
[COLOR=Green]'/// open the default browser, with the specified path...[/COLOR]
launchBrowser(defaultBrowser, "http://msn.co.uk/")
[COLOR=Blue]End Sub[/COLOR]
[COLOR=Blue]Private Sub[/COLOR] launchBrowser([COLOR=Blue]ByVal[/COLOR] browser [COLOR=Blue]As String[/COLOR], [COLOR=Blue]ByVal[/COLOR] url [COLOR=Blue]As String[/COLOR])
[COLOR=Blue]Try[/COLOR]
Process.Start(browser, url)
[COLOR=Blue]Catch[/COLOR] ex [COLOR=Blue]As[/COLOR] Exception
MessageBox.Show(ex.Message)
[COLOR=Blue]End Try[/COLOR]
[COLOR=Blue]End Sub[/COLOR]
goes to show there are various ways