Pappkasse
Pappkasse

Reputation: 141

log text from a console-application to a richtextbox in another project

I've made a console application and a windowsforms application. They both work together and i wonder if there's a way to log the console application output to a richtextbox in the other project?

Upvotes: 0

Views: 291

Answers (1)

Ray Fischer
Ray Fischer

Reputation: 996

Yes, there is a way. You run the console app from within the forms app and put the output into the text box.

The Process class has methods to start the console app and grab its output, then you stuff that output into the text box. There are plenty of details for you to look over but it's pretty straightforward.

More info here: Get Live output from Process

Upvotes: 2

Related Questions