在C#的Windows应用程序中打开网址需使用System.Diagnostics命名空间中的Process类,下面是源代码:
System.Diagnostics.Process.Start("http://");
或者使用下面的形式:
System.Diagnostics.Process.Start(@"C:\Program Files\Internet Explorer\IEXPLORE.EXE","http://");
上面两种形式中,第一种是以默认浏览器打开指定的网址
第二种是以指定的IE浏览器打开网址。