c#重定向数据 [英] c# redirection of data

查看:108
本文介绍了c#重定向数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一种机制,当我点击Windows窗体上的一个按钮时,它应该在另一个窗体的标签上显示该按钮的文本值。



请帮我解释代码

解决方案

如果你的''起始形式''创建了另一个,那么你可以传递按钮文本到另一种形式的构造函数。


你好,



看看这些提示:

在两种表格之间传递信息,第1部分:父母对孩子 [ ^ ]

在两个表格之间传递信息,第2部分:儿童到父母 [ ^ ]

在两种表格之间传递信息,第3部分:儿童与儿童 [ ^ ]

i want to set up a mechanism such that when i click a button on the windows form , it should show the text value of the button on an another form''s label.

Please help me with the code

解决方案

If your ''starting form'' creates the the other one, then you might pass the button text to the other form constructor.


Hi,

Have a look at these Tips:
Transfering information between two forms, Part 1: Parent to Child[^]
Transfering information between two forms, Part 2: Child to Parent[^]
Transfering information between two forms, Part 3: Child to Child[^]


这篇关于c#重定向数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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