C# - 打开IE加载? [英] C#-Wait for IE to load?
本文介绍了C# - 打开IE加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下代码在网络浏览器中打开网址:
I'm opening a URL in a web browser using the following code:
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加载?这是正确的方法吗?
Can someone tell me how I would wait for IE to be loaded? Is this the correct way to go about this?
谢谢,
Jimmy
Thanks, Jimmy
推荐答案
只要这样做:
Process.Start("http://www.google.com");
它会在默认浏览器中打开。
It'll open it in the default browser.
这篇关于C# - 打开IE加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文