C#打开网址的方法

来源:互联网 发布:男生保养脸部皮肤知乎 编辑:程序博客网 时间:2024/04/28 06:01

方法1、直接打入网址用默认程序打开

 System.Diagnostics.Process.Start("http://www.baidu.com"); 

 

方法2、使用指定程序并传入参数后打开
 System.Diagnostics.Process.Start(@"C:\Program Files\Internet Explorer\IEXPLORE.EXE","http://www.baidu.com");