Click to See Complete Forum and Search --> : Hiding windows and taskbar icon


dosman711
March 27th, 2003, 10:04 AM
Is there any way to hide the windows and taskbar icons of an application and still let it run in the background? Any help would be appreciated

Andrew275
March 27th, 2003, 11:41 PM
You can set the ShowInTaskbar property of the form to false.

pareshgh
March 28th, 2003, 04:03 PM
not sure about hiding the Taskbar tray ICONS though.

Paresh

dosman711
March 28th, 2003, 11:30 PM
More importantly though, is it possible to hide the Form window or console window of an application? I'm trying to write a simple server program that would run and then hide itself. I've got a working program, but as of right now i'm unable to hide it. Any help would be appreciated, or ideas on how this can be accomplished.

WillemM
March 29th, 2003, 06:55 AM
Create a console application and set in the project properties that it's a windows application. This will make it run in background. The only thing you will need to do is add some code like:


while(true)
{
blahblah();
}


If you want to create server application I recommend writing a windows service.. this is better for your kind of application. It will automaticly run and you can only shut it down when logged in as system administrator :)

dosman711
March 29th, 2003, 12:03 PM
Thanks much for your reply, this helps immensly. As for a service, I tried that at first, but I was unable to make MessageBoxes show from a service, so I decided to go with the hidden console idea. Thanks!