如何打开一个IE窗口并指定打开某个页面? 我想在程序运行时,打开一个IE窗口,并让这个IE窗口转到某个页面该

System.Diagnostics.Process.Start("www.csdn.net");

也可以指定用IE
System.Diagnostics.Process.Start("IEXPLORE.EXE","www.csdn.net");
---------------------------------------------------------------

System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();

//设置外部程序名
Info.FileName = exePath;

//设置外部程序的启动参数(命令行参数)
Info.Arguments = filePath;
Info.CreateNoWindow = false;

//启动外部程序
System.Diagnostics.Process.Start(Info);

Published At
Categories with Web编程
Tagged with
comments powered by Disqus