1

i'm trying to write a windows service firing custom events sending Specific strings. These strings should update a monitoring form (different app). While debugging, i notited that the external app isn't subscribed for receiving those events. I searched the internet but don't know where to start. All articles I found with this kind of problems are looking slightly different.

In Short:

App1 is a windows service firing events

App2 is a windows form that should receive these events and display received messages.

Where do I start

user1231231412
  • 1,658
  • 2
  • 25
  • 40
Luuk Krijnen
  • 1,160
  • 3
  • 13
  • 35

1 Answers1

3

.NET events are events that fire within a process (app-domain) - you can't subscribe to events in one process from another.

You need to look into some form of IPC - WCF is a good choice.

Community
  • 1
  • 1
Oded
  • 477,625
  • 97
  • 867
  • 998