How to hide window from taskbar in C# Console

1.2k views Asked by At

I needed to make an application that doesn’t show any window. I couldn't find the answer Also I looked at stack overflow pages.

1

There are 1 answers

1
Fil Sapia On

Does your application require a user interface? If not, you should really be creating a console application rather than a Windows Forms or WPF Application.

If you simply want to hide a form from within the form you can type the following:

this.Hide();

Edit: From a console application, you'll want to compile the project as a Windows Forms application under the project properties. Ensure that you have no startup object selected.