Hide console window in c # console application

The thing is, I really don't want the console window to appear ... but the solution should work. I want to say that I want the application to run in the background, without any window.

+86
console-application
04 Oct '10 at 8:24
source share
6 answers

Change the output type from the Console application to the Windows application. This can be done in Project -> Properties -> Application in Visual Studio:

alt text

+162
04 Oct '10 at 8:27
source share

Change your application type to a Windows application. Your code will still run, but it will not have a console window or a standard Windows window unless you create one.

+22
04 Oct '10 at 8:27
source share

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

+9
Nov 15 '13 at 13:17
source share

You might want to try creating a Windows Service application . It will run in the background without any interface.

+3
04 Oct 2018-10-10T00:
source share

Another solution for a console application . ( without changing the type of output ) I needed a similar thing, and I found that I shared it here.

+1
Mar 28 '16 at 11:50
source share

Change the type of output from the Console application to the Windows application ,

And instead of Console.Readline/key you can use new ManualResetEvent(false).WaitOne() at the end to make the application new ManualResetEvent(false).WaitOne() .

0
02 Dec '18 at 18:02
source share



All Articles