c#在启动firefox后,如何始终使用第一个标签页?
ProcessStartInfo startInfo = new ProcessStartInfo("firefox.exe");
Process process1 = new Process();
private void button1_Click(object sender, EventArgs e)
{
startInfo.Arguments = textBox1.Text;
process1.StartInfo = startInfo;
process1.Start();
}
每点一次button1就会打开一个新标签页,怎么样能够使得每次点button1都是在第一个标签页进行访问的? c#?firefox
[解决办法]
你可以使用 firefox.exe -new-window 启动一个新的窗口。
http://kb.mozillazine.org/Command_line_arguments