Click here to Skip to main content
12,892,709 members (45,653 online)
Rate this:
Please Sign up or sign in to vote.
See more: WCF C#3.5
I have two applications, one Windows Service, second Windows Forms application. What would be the best way to send a message (its a small string 10 character length) from Windows Service to Windows Forms.

Any simple approach is highly appreciated.

Posted 8-Dec-09 23:16pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You might use common storage to update this. Place your data in Registry / diskfile or whereever you want, and access it from both the process. This is the easiest.

Other than that, you might also use Named Pipes to send messages between two processes. Read this :[^][^]

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I think the simplest would be to have a function in your form that queries the service, and returns the value.

You can put it in a thread, or a timer.

I Agree With Answer 2.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170424.1 | Last Updated 13 Jan 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100