将值从 windows 应用程序传递到另一个应用程序

passing value from windows application to another one

如何将值从 Windows 桌面应用程序传递到另一个 Windows 桌面应用程序?

我现在卡住了。我不想在一个 Winform 应用程序中构建两种不同的表单。

我需要两个相互通信的不同 Winform 应用程序,其中一个向另一个发送值,接收方处理数据。 有人知道怎么做吗?

如果您能提供帮助,我将不胜感激。

你需要实现进程间通信,请勾选这个linkWhat is the simplest method of inter-process communication between 2 C# processes?

在此 link 中,您可以找到多个选项来实现进程间通信,例如:

  • Windows 传播基础
  • Windows 消息

您还可以使用 WCF 在应用程序之间进行通信。看看WCF - Fastest interprocess communication

如果您熟悉使用服务 (.Net Remoting) 的远程对象,那么您的两个应用程序可以使用此方法进行通信。

你可以参考这个link: https://www.daniweb.com/software-development/csharp/code/227615/simple-net-remoting-demonstration