如何从C#打开2个URL?

1 c#

好的,听起来很简单,我知道我可以使用Process.Start(" http:// mysite ");

但我需要一次打开2个网站!就像是

Process.Start(" http:// mysite "); Process.Start(" http:// othersite ");

我不能让它工作,因为它只打开第二个站点的过程.

任何帮助将不胜感激 ,

谢谢,

Mat*_*att 5

您可以尝试在新线程中打开每个.

Thread thread1 = new Thread(new ThreadStart(Process.Start("http://mysite")));
thread1.Start();

Thread thread2 = new Thread(new ThreadStart(Process.Start("http://othersite")));
thread2.Start();

thread1.Join();
thread2.Join();
Run Code Online (Sandbox Code Playgroud)