Click here to Skip to main content
15,909,332 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to show my form with windows service. My form is a popup alert in that there is no user control. Its just a popup form for alert.

I need to start the alert when my service starts

Pls help.

Thankz in advance
Posted
Updated 18-Apr-18 9:53am
v2
Comments
krishnaspmoorthy 26-May-11 6:27am    
Sir,

My need is that from server admin assign tasks to clients.
According to each client, need to show a popup alert near the taskbar. I done the alert project. But have to push while system become ON. So i need to attach my application with service.

Can you help me.

Thankx

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-May-11 15:31pm    
Misconception about Service, again. 5 for the answer.
--SA
Kim Togo 27-May-11 8:10am    
Thanks SA
You can't show a form from a Windows Service, and you can't run a GUI application from a Windows Service. The reason is that a service can be running while no user is logged in. What you *should* do is create a system tray application (configure it to run when a user logs in), and then you can have the app notify the service when it's available, allowing the service to push notifications to it.

I wrote an article that has a windows service communicating with a system tray app. It may or may not help you:

Synchronicity - A Folder Synchronizing Application[^]
 
Share this answer
 
Comments
krishnaspmoorthy 26-May-11 6:14am    
Sir,

My need is that from server admin assign tasks to clients.
According to each client, need to show a popup alert near the taskbar. I done the alert project. But have to push while system become ON. So i need to attach my application with service.

Can you help me.

Thankx
#realJSOP 26-May-11 7:29am    
I've told you how to do it. Go forth and code.
krishnaspmoorthy 26-May-11 6:23am    
Hi,

Can you tell any other way to show the popup with service.
NB: Popup have the data from the server

Thanx
Sergey Alexandrovich Kryukov 26-May-11 15:31pm    
Misconception about Service, again. 5 for the answer.
--SA
guys this is thread necromancy of the highest order, but this is simply NOT true. You can write yes /no messageboxes by collecting all available SessionID's of the users and dispatching using wtsapi32.dll via the STAThread

c# - .NET Windows Services (WTSSendMessage) : Displays message on XP but not Windows 7 - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900