Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. System tray icon

System tray icon

Scheduled Pinned Locked Moved C#
csharpquestionvisual-studio
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VanEtienne
    wrote on last edited by
    #1

    I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006

    C A G 3 Replies Last reply
    0
    • V VanEtienne

      I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      Why don't you search before you post questions like this? click -------------------------------------------------------- My development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      1 Reply Last reply
      0
      • V VanEtienne

        I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006

        A Offline
        A Offline
        Aaron Dilliard
        wrote on last edited by
        #3

        private void Form_SizeChanged(...) { if(this.WindowState==FormWindowState.Minimized) { this.ShowInTaskbar=false; NotifyIcon.Visible=true; }//if }//sizechanged private void NotifyIcon_DoubleClick(...) { this.ShowInTaskbar=true; this.WindowState=FormWindowState.Normal; NotifyIcon.Visible=false; }

        1 Reply Last reply
        0
        • V VanEtienne

          I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006

          G Offline
          G Offline
          Graham Nimbley
          wrote on last edited by
          #4

          The NotifyIcon class is what you need to use to create the system tray icon. Graham

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups