Console App State [Not Resolved]
I have a Console application that is used to delay the startup of some programs when the computer boots up.
It works fine.
The only problem is that it has to stay open until the application has been launched (It uses Threading.Thread.Sleep to wait a certain amount of time). This means that it stays in the start menu and can get in the way.
Is there any way to hide console applications and/or set their startup window state inside the program (As I may want to control these with parameters)? Or would it be easier to just use a form application and copy the code over?
Another way to solve this would be to use Task Scheduler to set the program to launch at X seconds in the future, or something that has a similar effect, though I want to keep away from this and have my program rely on as less external programs as possible.
Edit:
I'm using VS2008
Re: Console App State [Not Resolved]
Go to your Project Properties, Click on the Application tab and change the Application Type to "Windows Application". This will prevent the command windows being shown when your application runs.