Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: 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
Edited 28-Jan-13 7:49am
Sergey Alexandrovich Kryukov at 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
0 Sergey Alexandrovich Kryukov 450
1 OriginalGriff 180
2 DamithSL 130
3 Dave Kreskowiak 120
4 Suvendu Shekhar Giri 110
0 OriginalGriff 7,645
1 DamithSL 5,614
2 Sergey Alexandrovich Kryukov 5,344
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539

Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2014
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