Raising events froma Windows Service

  • Thread starter Thread starter JohnFol
  • Start date Start date
J

JohnFol

I will be re-writing an old VB6.EXE using .Net. The existing tool just sits
processing data from a SQL connection. My aim is to re-write as a Windows
Service that raises event that can bwe seen by a UI

The UI will be a Windows App to show the data being processed, but it
doesn't have to be running for the data to be processed. To make it work the
service needs to raise an event, something like


Public Event MyHandler(ByVal strSomeData As String)


and the UI needs to respond
Public WithEvents MyServiceEvent As New
ServiceProcess.ServiceController("MyServiceName")

Whatever I try I can't get the 2 to sych up. Any ideas?
 
Sunny, thanks for the reply.

I'll have a good read up before asking any more questions!

Regards
 
Back
Top