Process.Start() question.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ilya Dubov

    Process.Start() question.

    I am starting "iexplore" process by executing Process.Start command. Every
    time I execute this command, it creates a new window.



    Can somebody tell me what can I do, so that the new window only been created
    once, and the next time I execute Process.Start command



    it would just update an old window with the new url.

    Thanks

    Here is the code I execute.

    /*************** *************** *************** **

    Process proc = new Process();

    ProcessStartInf o procInfo = new ProcessStartInf o();

    procInfo.FileNa me = "iexplore.e xe";

    procInfo.Argume nts = "https://www.microsoft.c om/";


    proc.StartInfo = procInfo;

    proc.Start();



  • Scott M.

    #2
    Re: Process.Start() question.

    With process.start() , I don't think there is anything you can do since you
    are starting a new instance of IE.


    "Ilya Dubov" <igdubov@hotmai l.com> wrote in message
    news:OLyVD0ClDH A.1004@TK2MSFTN GP09.phx.gbl...[color=blue]
    > I am starting "iexplore" process by executing Process.Start command.[/color]
    Every[color=blue]
    > time I execute this command, it creates a new window.
    >
    >
    >
    > Can somebody tell me what can I do, so that the new window only been[/color]
    created[color=blue]
    > once, and the next time I execute Process.Start command
    >
    >
    >
    > it would just update an old window with the new url.
    >
    > Thanks
    >
    > Here is the code I execute.
    >
    > /*************** *************** *************** **
    >
    > Process proc = new Process();
    >
    > ProcessStartInf o procInfo = new ProcessStartInf o();
    >
    > procInfo.FileNa me = "iexplore.e xe";
    >
    > procInfo.Argume nts = "https://www.microsoft.c om/";
    >
    >
    > proc.StartInfo = procInfo;
    >
    > proc.Start();
    >
    >
    >[/color]


    Comment

    Working...