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,659
  • 2
  • 26
  • 42
Luuk Krijnen
  • 1,180
  • 3
  • 14
  • 37

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
  • 489,969
  • 99
  • 883
  • 1,009