Opening default web browser

后端 未结 5 1490
臣服心动
臣服心动 2020-12-21 08:05

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 s         


        
5条回答
  •  悲&欢浪女
    2020-12-21 08:41

    That's the right way to launch the browser with a URL in general, but if it fails, I would just catch that specific exception, and then attempt to call iexplore to open the URL in IE, given that it is bound to be installed on any Windows system. (I assume you're not targeting Mono/Linux here.)

提交回复
热议问题