How to run a C# console application with the conso

2019-01-02 20:02发布

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.

13条回答
怪性笑人.
2楼-- · 2019-01-02 20:38

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)

查看更多
登录 后发表回答