如何将编辑框的消息从一个对话框显示到我的第二个对话框的编辑框。 [英] how to display message of editbox from one dialog box to editbox of my second dialog box.

查看:61
本文介绍了如何将编辑框的消息从一个对话框显示到我的第二个对话框的编辑框。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做客户端和服务器的程序。因为我为客户端和服务器设计了两个对话框。我想发送用户在第一个对话框中输入的客户端名称。我想将该名称显示在另一个对话框中对话框。请帮助我如何做到这一点。

i am doing program of client and server.for that i have designed two dialog box for client and server.i want to send client name which is entered by user in first dialog box.I want to display that name in to another dialog box.please help me how can i do it.

推荐答案

第二个对话框出现在服务器端或客户端。如果它在客户端,那么只需在第二个对话框中创建一个字符串类型的成员变量,然后在第一个对话框中创建第二个对话框的对象,然后在第一个对话框
中读取编辑框的值并将其分配给第二个对话框字符串变量。现在第二个对话框保存该值,您可以按照自己的方式使用它。

Is Second dialog appear at server end or client end . If it is at client end then simply create a string type member variable in second dialog and create an object of second dialog in first dialog and then simply read the value of edit box in first dialog and assign it to your second dialog string variable . Now second dialog hold that value and you can use it the way you want.

谢谢


这篇关于如何将编辑框的消息从一个对话框显示到我的第二个对话框的编辑框。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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