C# output on both form textbox and console applica

2019-08-06 19:50发布

The question here is if anyone has an idea how to both get StandardOutput data to print in Windows form application and keep the output in the console itself. The WinForms part I have completed already, it works great with process events and invoking form elements. At this point I am pretty sure that after re-directing output, Console.Writeline() doesn't print anything on the console window anymore. Any ideas besides running another dummy process that simply displays anything whats on InputStream?

Also

While I'm at this. Is there any way to access process that is on another thread? Since whenever I try to access it it shows that its out of scope.

0条回答
登录 后发表回答