Redirect console output to a form's textbox in realtime, how do I do it?

  • Thread starter Thread starter Schadenfroh
  • Start date Start date
S

Schadenfroh

Guest
Greetings,

Basically, I wish to send the text from a certain line in the hidden console window to a textbox in the form, but I need this output while the console application is still running in a hidden window. Since I am going to have multiple instances of this console application running, I have assigned their processes to an array and each have a separate "hidden" console window. After I launch these applications (with different arguments assign to them), they require no input and will run until I ".kill them" using the GUI.

The console application was written in the old C and it's source code scares me. I am creating this GUI "bolt on" application for it in VB.NET 2005 to clean up desktop space (save me from 30 console windows) and to be able to start, stop, and monitor them from a single clean GUI.


Attempted solutions:
I have reviewed the information here:
Launching and Monitoring External Programs from VB.NET Applications : Page 5

But again, that just tells me how to capture the output of it after the console application has exited, which I already know how to do and I do not wish to kill the application just to see a certain line of it's output as it would obviously interrupt what it is doing.




I have been working on this problem for hours and reviewing various msdn articles, but I have not found what I need to do in order to perform this rather strange task.

Thanks guys for any help you can provide.

Continue reading...
 

Similar threads

J
Replies
0
Views
5
John Edwards, InformationWeek
J
Y
Replies
0
Views
881
Yuri Plyakhin
Y
T
Replies
0
Views
567
This_display_name_is_already_in_use_They_all_are
T
Back
Top