如何在Windows窗体中启用私人聊天 [英] How to enable private chat in Windows forms

查看:84
本文介绍了如何在Windows窗体中启用私人聊天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用远程处理概念创建了一个聊天应用程序。

我很适合群聊。



我正在显示所有在线列表框中的用户。



当我按某个人时,新的表单会打开私人聊天。



我有一个丰富的文本框来记录聊天消息和一个文本框来输入聊天消息。



当我按下输入相应的表格应该在客户端打开显示我的消息。



怎么做

I have created a chatting application using remoting concept.
I works well for group chat.

I am displaying all the online user in a list box.

When I press a particular person a new form open for private chat.

There I have a rich textbox to record chat message and a text box to enter chat message.

When I press enter corresponding form should be opened on the client side displaying my message.

How to do this

推荐答案

你没有显示代码而只是要求一个怎么样。但谁应该猜测你的代码是如何构建的,你的应用程序是如何实现的?很难想象你可能会陷入困境。



所以我建议:在客户端为收到的消息添加处理程序(或者其他)你打电话给它),

接收消息并显示它 - 通过打开一个新表格(不是我希望的每一条消息?)或将消息添加到现有的Forms控件(TextBox或你拥有的内容) )。



我担心我的回答对你没什么帮助 - 但是你的问题符合质量...... - 不要像往常一样开玩笑:显示代码,询问具体的问题解决方案,并告诉你卡住的地方 - 你现在是5个月的会员 - 也许可以阅读论坛规则(再次)?
You didnt show code and just asked for a "how". But who should guess how your code is structured and your app is implemented? It's hard to imagine where you possibly got "stuck" with that.

So I'd suggest: On Client side add a handler for "message received" (or whatever you call it),
take the message and show it - by opening a new Form (not on every message I hope? )or adding the message to a existing Forms control (a TextBox or what you have).

I fear my answer won't help you much - but fit's the "Quality" of your question.. - No joke aside, as usual: Show code, ask for specific Problem solution, and tell where you stuck - You are a member for 5 months now - maybe read the Forum rules (again)?


这篇关于如何在Windows窗体中启用私人聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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