CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2003
    Location
    Oxford, OH
    Posts
    12

    Hiding windows and taskbar icon

    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
    ~Chris

  2. #2
    Join Date
    Mar 2003
    Posts
    8
    You can set the ShowInTaskbar property of the form to false.

  3. #3
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    not sure about hiding the Taskbar tray ICONS though.

    Paresh
    - Software Architect

  4. #4
    Join Date
    Mar 2003
    Location
    Oxford, OH
    Posts
    12
    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.
    ~Chris

  5. #5
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284
    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:

    Code:
    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
    WM.

    What about weapons of mass construction?

  6. #6
    Join Date
    Mar 2003
    Location
    Oxford, OH
    Posts
    12
    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!
    ~Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured