首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

c#在启动firefox后,怎么始终使用第一个标签页

2013-10-25 
c#在启动firefox后,如何始终使用第一个标签页?ProcessStartInfo startInfo new ProcessStartInfo(firef

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

热点排行