Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide a console application in C#

I have a console application in C#, and I want that the user won't be able to see it.

How can I do that?

like image 320
menacheb Avatar asked May 04 '10 07:05

menacheb


People also ask

How do you hide a console window?

"SW_HIDE" hides the window, while "SW_SHOW" shows the window.

How can I open console application without Windows?

If you do not know what I am talking about: press Win+R, type “help” and press ENTER. A black console window will open, execute the HELP command and close again. Often, this is not desired. Instead, the command should execute without any visible window.


1 Answers

Compile it as a Windows Forms application. Then it won't display any UI, if you do not explicitly open any Windows.

like image 64
driis Avatar answered Sep 21 '22 04:09

driis