Windows Service with Tray Icon and GUI
-
Hello, this is Vikash Gohil. I have a windows service that takes data from the database and does some processing on that data. I have also added licencing functionality to the service so that people using it will require to register with us. Initially the service would run in trial period and would expire after 30 days. Now I want the below functionality. I want to add a User Interface in the Service which will popup when user clicks on SysTray icon of my service. This UI would allow user to Register service using a Licence file on trial period expiration. And also when registeration form is open, i want the service to pause as i am using sleep command in my service, which will lock the UI if service is running. Can someone provide me some idea how to do it. Any help would be greatly appreciated. Thanks in advance. Awaiting a reply soon.
-
Hello, this is Vikash Gohil. I have a windows service that takes data from the database and does some processing on that data. I have also added licencing functionality to the service so that people using it will require to register with us. Initially the service would run in trial period and would expire after 30 days. Now I want the below functionality. I want to add a User Interface in the Service which will popup when user clicks on SysTray icon of my service. This UI would allow user to Register service using a Licence file on trial period expiration. And also when registeration form is open, i want the service to pause as i am using sleep command in my service, which will lock the UI if service is running. Can someone provide me some idea how to do it. Any help would be greatly appreciated. Thanks in advance. Awaiting a reply soon.
You don't do this stuff in the Service. You do it in a seperate application that puts it's interface behind the tray icon and talks to the service through whatever interprocess communcation channel you like.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...