Send a simple message between two Windows Apps running on same PC at the same time
Posted on 2005-04-06
Let's say I have 2 windows applications written in C#, AppOne and AppTwo.
AppOne has a TextBox and a "Send" Button
AppTwo has a TextBox.
I start AppOne, then I start AppTwo next...both on the same PC.
I type "hello" into the TextBox on AppOne and click the "Send" Button.
The word "hello" shows up now in the TextBox on AppTwo.
Please provide complete C# source code for AppOne and AppTwo.
I do not want to use TCP or UDP to do this unless there is NO other way.
I want to set up a true PIPE between the two applications.....in other words...no slight of hand with processes or send keys or sharing a text file....I want the "best practice" way to do this.
For example, is what I am describing handled best by Remoting ... or Named Pipes?