关于打开默认浏览器的问题

问题描述

我想使用认浏览器(在我的例子中是 Chrome)从 VB.NET 应用程序打开一个网页。

我使用此代码

Dim browserRegistryString As String = My.Computer.Registry.ClassesRoot.OpenSubKey("\http\shell\open\command\").GetValue("").ToString
Dim DefaultbrowserPath As String = System.Text.RegularExpressions.Regex.Match(browserRegistryString,"(\"".*?\"")").Captures(0).ToString
Process.Start(DefaultbrowserPath,"http://www.example.com")

它工作得很好,除了它在 Microsoft Edge 中打开网站,但如果我在 shell 中使用“start http://www.example.com”,它会在 Chrome 中打开网站。 Chrome 被设置为我的认浏览器(来自 Windows 10 配置面板),所以...

...那个迷雾从何而来?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)