C
C
Curly Brace2015-09-21 15:03:02
Programming
Curly Brace, 2015-09-21 15:03:02

How to manage a console application from C# WinForms?

I am writing a GUI for the miner, so that it would be convenient to run it with different options.
It is not very clear how to start the process itself so that:
-the window appeared -it
could be hidden
-the text in the window was displayed as usual
-the text from the window could be parsed in a GUI program (track the hashrate)
honestly googled about Process.Start() and its RedirectStandartOutput. But this is not the case, because the launcher stops until the running process ends and the console window ends up empty, all the output goes by.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Filatov, 2015-09-21
@NYMEZIDE

Write a better service (Service) and manage it through the console.

D
DVamp1r3, 2015-09-21
@DVamp1r3

Start the process and connect to the output. In msdn on Process there are examples. And it is not necessary to do this in one thread, then the GUI will not freeze.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question