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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to create context menu for notify icon using windows service application in c#.net

How to create context menu for notify icon using windows service application in c#.net

Scheduled Pinned Locked Moved C#
csharptutorialquestion
2 Posts 2 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.
  • D Offline
    D Offline
    dharanighanta
    wrote on last edited by
    #1

    Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu for this icon. I have added context menu for notify icon but context menu not displaying in systray. Please let me know how to do this? With regards, Dharani.

    J 1 Reply Last reply
    0
    • D dharanighanta

      Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu for this icon. I have added context menu for notify icon but context menu not displaying in systray. Please let me know how to do this? With regards, Dharani.

      J Offline
      J Offline
      Justin Perez
      wrote on last edited by
      #2

      dharanighanta wrote:

      Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu for this icon. I have added context menu for notify icon but context menu not displaying in systray. Please let me know how to do this?

      AFAIK, it won't display. A service is supposed to run without any user interaction. I.E. no System.Windows.Forms. I think you can have the tray icon, but no context menu. Maybe someone will verify this. What I think you will have to do is have your service start a process that is nothing but a tray icon, with the context menu(if that's what you want), and then have that application communicate with the service.

      "If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

      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