How to keep the program running but minimized in tray?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kurtzky
    New Member
    • Nov 2008
    • 26

    How to keep the program running but minimized in tray?

    Hi guys.. I created a program and I want to hide the main form in the tray but the entire program should be running (program should not appear in taskbar). Do you know how to do it? Thanks.
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    In form load event you could add this...
    Code:
    this.Hide(); this.ShowInTaskbar = false;
    In case your program does not require any user interaction and runs continously in background then windows service would be better choice..

    Comment

    • kurtzky
      New Member
      • Nov 2008
      • 26

      #3
      Uhm, I'm not quite familiar with windows service, but is it like creating already the setup for the application and install it on the server?

      Comment

      • PRR
        Recognized Expert Contributor
        • Dec 2007
        • 750

        #4
        Its completely a different breed... you can look into it for future use... currently you can go with your windows form application.. check this article...

        Comment

        Working...