|
-
Nov 16th, 2008, 09:51 AM
#1
Thread Starter
Fanatic Member
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
Last edited by Slyke; Nov 17th, 2008 at 03:31 AM.
-
Nov 16th, 2008, 06:20 PM
#2
Re: Console App State
The Console class does have some members that relate to the window, although there's no way to minimise or hide it specifically. You can set the WindowLeft or WindowTop property though, so you can push it offscreen. I'm assuming it would work as I've never actually tried it.
-
Nov 17th, 2008, 03:28 AM
#3
Thread Starter
Fanatic Member
Re: Console App State
Okay, guess I'll just copy the source code then. Thanks for your advice =).
-
Nov 17th, 2008, 12:35 PM
#4
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.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|