Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VB.NET
Hi
 
What is service ?
 
Is it possible to flash a window if a entry is made into a sql table?
Posted 29-Nov-11 18:17pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Window service enable you to create long-running executable applications that run in its own Windows session, which then has the ability to start automatically when the computer boots and also can be manually paused, stopped or even restarted.
 
check this , window service in .NET[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

A Windows Service is not designed to show any UI at all, as it can work when the system is started but no one is logged in, the desktop is not available, and/or when people log in and log out. Optionally, it can be started automatically when a system starts up. Normally, other applications communicate with a Windows Service via IPC (Inter-Process Communication such as named pipes and network.
 
However, in principle, your problem can be solved. To do it, you should have a Windows Service and one more application, which is an interactive application showing your flash or whatever you need on UI level. This application can connect to the Service and establish a channel (say, TCP session, named pipe) the way the Server can push notifications to this application. You can also use classical remoting or WCF, presumably self-hosted by the Service.
 
Naturally, all the SQL requests should be redirected through your Windows Service which should relay them to the database server. I think this is feasible but will need considerable effort.
 
—SA
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 349
1 Sergey Alexandrovich Kryukov 319
2 Maciej Los 260
3 George Jonsson 185
4 King_Fisher 160
0 Sergey Alexandrovich Kryukov 10,934
1 Maciej Los 5,614
2 OriginalGriff 5,603
3 CPallini 3,879
4 BillWoodruff 3,579


Advertise | Privacy | Mobile
Web02 | 2.8.141030.1 | Last Updated 30 Nov 2011
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