I found a very easy way online that allows me to hide the main form in my application:
This works great when I run the application either from debugging in visual studio, or manually.
However..
I also installed this application to start automatically from Windows (in this case, Windows 7), so I do not need to run it manually each time. When this happens, a very very short moment occurs when I still see the blinking in full screen. Is there any way to prevent this?
Edit: people don't seem to know anything important. A project is created as a console application, so it has a form or .Run () application method . It just has one static Main method, like any other console application.
Edit2: Just out of interest, should I make a normal WinForms project and try to hide this main window using either the proposed answer or another solution?
Thank!
source
share