user1844205
user1844205

Reputation: 141

Communication between 2 Windows Forms applications

I have 2 windows form applications. 1st application interacts with database while the other application is aimed to communicate with the 1st application to interact with the database. So how can I interact two applications with each other. Which tool should I use?

Upvotes: 3

Views: 10125

Answers (4)

user1970058
user1970058

Reputation: 93

Another option is ZeroMQ C# binding:

http://www.zeromq.org/bindings:clr

Upvotes: 3

Tiago
Tiago

Reputation: 3131

Here is a good example using WCF to communicate two processes:

http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication

Upvotes: 4

Vlad Bezden
Vlad Bezden

Reputation: 89499

One option would be to use WCF named pipes (net.pipe) the other option would be Anonymous Pipes for Local Interprocess Communication

Excerpt:

Anonymous pipes offer less functionality than named pipes, but also require less overhead. You can use anonymous pipes to make interprocess communication on a local computer easier. You cannot use anonymous pipes for communication over a network.

Upvotes: 1

Dhawalk
Dhawalk

Reputation: 1269

Use WCF with netnamedpipe binding as @I4V recommends. Other alternatives are use Pipes, Remoting, or fileshare.

Upvotes: 0

Related Questions