How to run a C# console application with the console hidden

Aaron Thomas picture Aaron Thomas · May 7, 2009 · Viewed 168.2k times · Source

Is there a way to hide the console window when executing a console application?

I am currently using a Windows Forms application to start a console process, but I don't want the console window to be displayed while the task is running.

Answer

Simon picture Simon · May 8, 2009

If you wrote the console application you can make it hidden by default.

Create a new console app then then change the "Output Type" type to "Windows Application" (done in the project properties)