Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer C#-等待IE加载?_Internet Explorer_C# 4.0 - Fatal编程技术网

Internet explorer C#-等待IE加载?

Internet explorer C#-等待IE加载?,internet-explorer,c#-4.0,Internet Explorer,C# 4.0,我正在使用以下代码在web浏览器中打开URL: Process p = new Process(); p.StartInfo.FileName = GetDefaultBrowserPath(); //gets path to default browser from the registry p.StartInfo.Arguments = "htp://www.google.com"; p.Start(); 有人能告诉我如何等

我正在使用以下代码在web浏览器中打开URL:

        Process p = new Process();
        p.StartInfo.FileName = GetDefaultBrowserPath();  //gets path to default browser from the registry
        p.StartInfo.Arguments = "htp://www.google.com";
        p.Start();
有人能告诉我如何等待IE加载吗?这是正确的方法吗

谢谢, 吉米就这么做吧:

Process.Start("http://www.google.com");

它将在默认浏览器中打开。

这可能就是您要查找的内容

p.WaitForInputIdle()

你能为你的问题增加一些背景知识吗?例如,您想要完成什么,需要等待默认浏览器(不一定是IE)加载?也许还有其他方法可以完成你想做的事情。@Brian我需要截取IE中打开的链接的屏幕截图。标记作为答案。我发现了一个重复的问题-