473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Events and Windows Services

If I write a windows service that raises events, is there a way I can listen
for and catch those events from a windows forms application?

TIA,

Jason

Sep 30 '06 #1
1 1379
Hi Jason,
Due to the fact that each process is allocated it's own managed
memory space it isn't easy to attach to external events naturally in
..NET.

These are a few suggestions on how to get around this :-
1. Utilise windows messaging by setting up your own windows hooks
http://www.devsource.com/article2/0,1895,1972271,00.asp
2. Create your own messaging component using MSMQ or a simple file
that
both processes subscribe too.
3. Use a database that utilises the new notification service in SQL
2005 etc...
4. It's possible to use network sockets that each external process
connects to
in order to receive the event.

I would personally think about using a mixture of MSMQ and/or SQL 2005,
it's simple to implement and easy to scale out over a network.

Hope this helps,
Tony Swift

Jason wrote:
If I write a windows service that raises events, is there a way I can listen
for and catch those events from a windows forms application?

TIA,

Jason
Sep 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sudheer | last post by:
Hi, Thank you in advance. I need to devlop an application, which reads the outlook inbox messages and appends some additional message to the read messages. I want to know is it possible to do...
9
by: esafran | last post by:
Hi, I've have encountered a very strange behaviour under C#. My application is registering for: Microsoft.Win32.SystemEvents.DisplaySettingsChanged &...
7
by: Jay Douglas | last post by:
Greetings, I have a Windows form application that (naturally) instantiates all sorts of objects. I have a base object that contains an event. Lots of other objects inherit from this event. ...
1
by: Abel Chan | last post by:
Hi there, I was trying to write a simple NT services using .NET 2.0 and fileSystemWatcher control. The goal is to poll documents from a watch directory and ftp them to a remote web site. I...
6
by: Eran.Yasso | last post by:
Hi all, I need to write a GUI app which do the followings: 1. My app waits for events from other app(actually this is a network adapter driver) running in kernel. The driver writes to file and...
2
by: Itzik | last post by:
Hi all, How can i handle windows events. For example i what to know all times when new folder creates. Thanks
1
by: Stuart Parker | last post by:
Hi... I'm messing about with windows services in vb.net 2005 and have the following question. I have a service which has a timer in it, which fires every minute - Textbook stuff I have a...
1
by: CSharpner | last post by:
Short Question: How do I support Cut/Paste to/from a .NET app and Windows Explorer? Full Text: I'm nearing the completion of a Remote File Management application. It looks and feels a lot like...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.