Click here to Skip to main content
15,888,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm using vb.net 2008 and sql 2008 and I want a message to be displayed to a user when the vb program is not running.
I have been able to display the message, but that's when the Vb program is running. Is the anyway to display the message when the Vb project is not lauched or run? I thought of Windows Service, but do not not how to go about it.

Thanks in advance.
Posted
Updated 28-Jan-13 6:49am
v2
Comments
Sergey Alexandrovich Kryukov 28-Jan-13 11:51am    
"Not running" is not any distinct event you can possibly handle. I am not even sure you know what do you want.
—SA

1 solution

You can't use a Windows Service to do this as services do not expose a user interface, ever.

The user interface, including your notification icon in the tray, must be supplied by a user-mode application, usually run out of the Run key when a user logs in. In your case, you wouldn't even need Windows Service at all. This notification app would do all the work of checking for and notifying the user that this app isn't running.

Though, I fail to see why you would even need such a facility...
 
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