将字符串从一个应用程序发送到C#窗口基础项目中的另一个应用程序 [英] send string from one application to another application in C# window base project

查看:61
本文介绍了将字符串从一个应用程序发送到C#窗口基础项目中的另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友.
我有两种情况...
第一种情况.....
我在同一台计算机上有两个基于C#Windows的应用程序.
从第一个应用程序中,我进入3个文本框,然后单击按钮(发送消息).
在第二个应用程序中,我需要接收将在标签或任何控件中显示的三个文本框值.


2.case--我需要将该信息发送到局域网中另一个Matchine中的另一个.net(C#)应用程序..

请帮助我如何解决此问题..


感谢您在广告中...
Shafiq

Hello friend.
I have two case...
1st case.....
I have two c# windows based application in same machine.
from first application i am entring 3 textbox and click on button (to send message).
In Second application i need to receive that three text box value which i will show in label or any control.


2.case-- I need to send that info to another .net(C#) application which is in another matchine in LAN..

Please help how can i solve this issue..


Thanks in adv...
Shafiq

推荐答案

第一种情况-您可以使用公共属性.

第二种情况-您可以使用WCF.
First case - you could use a public property.

Second case - you could use WCF.


AFAIK,我想WCF是一个不错的起点,它可以配置为使用进程间通信或使用通过网络工作的方法.
I guess WCF is a good place to start, AFAIK, it can be configured to use inter process communications or to use methods that work over a network.


这篇关于将字符串从一个应用程序发送到C#窗口基础项目中的另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆