0

How to pass value from a Windows desktop application to another Windows desktop application?

I'm stuck right now. I don't want to build two different forms in one Winform application.

I need two different Winform application that communicates with each other, one of them send value to other one and the receiver processes the data. Anyone knows how to do that?

I'd be grateful if you can help.

Magnus Karlsson
  • 3,549
  • 3
  • 31
  • 57
BarisY
  • 171
  • 2
  • 4
  • 14

3 Answers3

1

You need to implement interprocess communication, Please check this link What is the simplest method of inter-process communication between 2 C# processes?

in this link you can find multiple options to implement interprocess communication such as:

  • Windows Communication Foundation
  • Windows Messages
Community
  • 1
  • 1
Ahmad Al Sayyed
  • 596
  • 5
  • 13
0

Also you can use WCF for communicating between applications. Have look WCF - Fastest interprocess communication

Community
  • 1
  • 1
Alexey Nis
  • 471
  • 3
  • 9
0

If you are familiar with Remote Objects using Services (.Net Remoting), then your two application can communicate using this method.

You can refer to this link: https://www.daniweb.com/software-development/csharp/code/227615/simple-net-remoting-demonstration

Joel Legaspi Enriquez
  • 1,236
  • 1
  • 10
  • 14