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