load a process into panel or something at run time RRS feed

All replies

  • Hello,

    Please provide more details.

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Friday, August 9, 2019 11:08 AM
  • var process = new Process();
                process.StartInfo.FileName = @"C:\Users\Pot\AppData\Local\Discord\app-0.0.305\Discord.exe";
                SetParent1(process.MainWindowHandle, panel1.Handle);

    something like that but it wont work

    get process path and with that path stream the process into a panel like show the program at the panel

    Friday, August 9, 2019 1:22 PM
  • No. A process is standalone and (ignoring shared memory) cannot be "shared" in another process. The only real option for a console app would be to use Process and capture the output stream. Then use that stream to write to a control in the calling app. However there are lots of issues with this including the fact that the process would need to be a console app, you would potentially need to merge in the error stream as well (depends on the app), would need to handle any buffering issues (common with processes that write lots of stuff to stream) and ultimately clean up the streams.

    Michael Taylor

    Friday, August 9, 2019 1:41 PM