winform程序,我用process已打开IE,怎么设置这个IE窗口是一个新打开的窗口而不是替换了原先的! 高分

解决方案 »

  1.   

    process  不能实现吗
      

  2.   

    proc.StartInfo.FileName=@"http://www.sina.com"; 
    proc.StartInfo.Arguments="";
    proc.Start();
    我是这样打开一个IE 我想使打开的IE是新的 应该怎么办
      

  3.   

    Process myProcess = new Process();
    myProcess.StartInfo.FileName = "IExplore.exe";
    myProcess.StartInfo.Arguments = "http://www.csdn.net";
    myProcess.StartInfo.CreateNoWindow=true;
    myProcess.Start();
      

  4.   

    你可以试试CreateNoWindow....
    Process myProcess1 = new Process();
    myProcess1.StartInfo.FileName = "IEXPLORE.EXE";
    myProcess1.StartInfo.Arguments = yoururl;
    myProcess1.StartInfo.CreateNoWindow=true;
    myProcess1.Start();
      

  5.   

    proc.StartInfo.FileName=@"http://www.sina.com"; 
    proc.StartInfo.Arguments="";
    proc.Start();
      

  6.   

    Process myP = new Process();
    myP.StartInfo.FileName = "IExplore.exe";
    myP.StartInfo.Arguments = url;
    myP.StartInfo.CreateNoWindow = true; 
    myP.Start();
      

  7.   

    不要用PROCESS
    InternetExplorerClass m_IE =new InternetExplorerClass();
    也可以用接口:InternetExplorer m_IE =new InternetExplorer();
    object o=null;
    m_IE.Navigate("http://mail.163.com/",ref o,ref o,ref o,ref o);
    m_IE.Visible=true;
    不过这样要添加对SHDocVw的引用
    如果用Process也应该能实现,以下我没测试过,你自己试试:
    Process myProcess = new Process();
    myProcess.StartInfo.FileName = "IExplore.exe";
    myProcess.Start();
    ShellWindows sws= new ShellWindowsClass();
    foreach(InternetExplorer Browser in sws) 
    {
    string fl=Browser.FullName;
    fl=Path.GetFileNameWithoutExtension(fl).ToLower();
    HTMLDocument doc=(HTMLDocument)Browser.Document;
    if(fl.Equals("iexplore")&&doc.title="")
    {
    object o=null;
    Browser.Navigate("http://mail.163.com/",ref o,ref o,ref o,ref o);
    break;
    }
    }
    //这样也要添加对SHDocVw的引用
      

  8.   

    http://www.codeproject.com/shell/AutomateShellWindow.asp
      

  9.   

    Process.Start("IExplore.exe", "C:\myPath\myFile.htm")使用Process.Start每次开的都是新的。
      

  10.   

    你可以试用一下我的方法
    http://www.fsang.com/article.asp?id=10