Hide Console Window in C# Console Application

前端 未结 5 1178
面向向阳花
面向向阳花 2020-12-07 10:48

The thing is, i really dont want the console window to show up...but the solution should be running. My point here is, I want to keep the application running in the backgro

5条回答
  •  粉色の甜心
    2020-12-07 11:22

    Instead of Console.Readline/key you can use new ManualResetEvent(false).WaitOne() at last. This works well for me.

提交回复
热议问题