C#中的多控制台应用程序 [英] Multiple Console application in C#

查看:89
本文介绍了C#中的多控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C#创建一个多控制台应用程序(例如多文档界面)(例如,控制台A,B,C和D).

1)每个控制台都可以接收和发送消息.
2)例如,向D发送消息,那么它必须在D中接收并显示在D上.
3)如果在D上接收到消息,则A应该显示在D上接收到消息.(步骤2和3适用于所有控制台发送和接收消息).


我该如何在C#中实现这一点,请提供一些代码来实现.



问候
TanzeelurRehman

I am creating an multiple consoles application (like Multiple Document Interface) in C# (say the consoles A, B , C and D)

1) Each Console can receive and send message.
2) For example A send message to D then it must be received in D and display on D.
3) If the message is received on D then A should display that the message is received on D. (step 2 and 3 is applied for all the consoles to send and receive message).


How can i implement this in C# and please provide some code to achieve this.



Regards
TanzeelurRehman

推荐答案

我在这篇文章中使用了类似的内容,通过阅读它,您可以学习如何查找cmd窗口并向其发送信息.

使用.NET管理流程和Shell API功能,第1部分 [ ^ ]
I used this article for something similar, of you read through it you can learn how to find your cmd windows and send them information.

Managing Processes and Shell API Functionality using .NET, Part 1[^]


这篇关于C#中的多控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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