My Windows Forms program runs another console program. This second writes messages on the screen during execution. I want to know if it has to prevent the execution of the other program from opening the console, and instead the printf of the other program (which is written in C ++) are displayed in my TextBox.
Practical example: Imagex is a Microsoft console program. One user created Gimagex that has a graphical interface and runs Imagex and all text outputs appear on Gimagex.