I’m sorry if this has been asked but I cannot find an answer to it. I may not be searching the right terms.
I have a console program that needs to be run in the background. The user needs the console to stay open white it runs, but need it to not become the active window when it starts. They would like to continue what they are currently working on and not have to minimize the console every time it starts.
This console application runs multiple times, each time with a new console window. How can I “hide” the console behind the current running task/window?
You can programmatically minimize/restore console windows using below code:
If you’re using Process.Start to start the console app, better use this: