Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
My application host an external application.

By this code i can host first process of external application but its output process run out of my project form.outputs are a process not text.

C#
ProcessStartInfo info = new ProcessStartInfo();
            info.FileName ="my path"; 
            info.UseShellExecute = true;
            info.CreateNoWindow = true;
            info.WindowStyle = ProcessWindowStyle.Normal;
            info.RedirectStandardInput = false;
            info.RedirectStandardOutput = false;
            info.RedirectStandardError = false;

            Process Real = Process.Start(info);
           
            System.Threading.Thread.Sleep(500);
            SetParent(Real.MainWindowHandle, this.panel1.Handle);
            SetWindowLong(Real.MainWindowHandle, GWL_STYLE, WS_VISIBLE);//Remove Border external application
            ShowWindowAsync(Real.MainWindowHandle, SW_SHOWMAXIMIZED);//Maximize external application in it's container


What is solution to hosting an output of another process?
Posted
Updated 16-Jun-15 1:29am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900