如何打开网页浏览器的替代(Mozilla的火狐或),并显示具体网址是什么? [英] How do I open alternative webbrowser (Mozilla or Firefox) and show the specific url?
本文介绍了如何打开网页浏览器的替代(Mozilla的火狐或),并显示具体网址是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道有内置的IE浏览器,但我正在寻找的是与指定的URL打开Firefox / Mozilla浏览器窗口(运行程序)。谁能告诉我该怎么做,在C#(.NET)?
I know there is built-in Internet explorer, but what I'm looking for is to open Firefox/Mozilla window (run the application) with specified URL. Anyone can tell me how to do that in C# (.nET) ?
推荐答案
这将启动系统定义的默认浏览器:
This will launch the system defined default browser:
string url = "http://stackoverflow.com/";
System.Diagnostics.Process.Start(url);
记住的Process.Start(URL)可能会抛出异常,如果浏览器配置不正确。
Remember that Process.Start(url) might throw exceptions if the browser is not configured correctly.
这篇关于如何打开网页浏览器的替代(Mozilla的火狐或),并显示具体网址是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文