Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2004, 01:30 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default ServiceController and Events

Hello,

I was going to create a Windows Service that checked the database every 10 minutes, and through some form of notification, display that a new entry in the table was created. I read that the best way to do this is to use a combination of windows app/windows service. The windows app would then receive some sort of notification that new data was posted.

Does anybody know how I can get the windows app to be notified when the service needs to notify it?

Am I looking at this right?

Brian
__________________
Brian
 
Old June 24th, 2004, 03:10 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I know that you can't display any sort of user interface with a windows service. One way of doing what you suggest would be just to create a system tray app (i.e. one with no user interface, just displays in the system tray) that polls the database and displays a notification when it detects something.

Otherwise, you could have the service starting a windows app called something like 'alerter' that shows a user interface. Pass in some command line arguments with what you want to display.

 
Old June 29th, 2004, 04:07 PM
tnd tnd is offline
Authorized User
 
Join Date: Jun 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why have the server call the 'alerter' with a command line parameter? Sounds like both the service and UI is runs on the same machine. Why not just have the UI poll the database every 10 minutes?

Brian, sounds like all you need is a way for 2 apps to communicate. May I suggest using winsocks/UDP. It's pretty easy to implement and works well over the LAN.

 
Old June 29th, 2004, 09:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

tnd,

I'll keep that in mind.

Thanks for the info,

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Events bschleusner C# 2005 2 February 26th, 2007 05:25 AM
Page Events aware Javascript 2 November 8th, 2006 07:01 AM
Events not firing in IE malk ASP.NET 1.0 and 1.1 Professional 7 August 29th, 2006 01:32 PM
help with Events egiblock JSP Basics 0 October 6th, 2003 11:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.