Click here to Skip to main content
12,697,801 members (25,837 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
I'm using 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 28-Jan-13 5:02am
Updated 28-Jan-13 7:49am
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.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100