I am using the function below to open the user's default web browser.
Public Function ShowHelp(ByVal url As String) As System.Diagnostics.Process
Dim startInfo As New Diagnostics.ProcessStartInfo()
startInfo.FileName = url
startInfo.WindowStyle = ProcessWindowStyle.Maximized
Return System.Diagnostics.Process.Start(startInfo)
End Function
A couple of times the function returned the error (on users machine) "the system cannot find the file specified"
I guess the user has not set a default web browswer. Why i get this error? How could i add a default web browswer check before calling this function?