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?
"SW_HIDE" hides the window, while "SW_SHOW" shows the window.
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.
Compile it as a Windows Forms application. Then it won't display any UI, if you do not explicitly open any Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With