主要形式价值变化 [英] main form value change
本文介绍了主要形式价值变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友们,
我有两种形式的MainForm& SubForm ...当我点击主界面按钮时,点击主界面文本框值发送到子表单..重新设置值然后关闭事件子表单值设置为主表单文本框..
Hi Friends,
i have two form MainForm & SubForm... when i click mainform button click mainform textbox value send to sub form ..to chnge the value then closing event sub form value set to main form textbox ..
mainfrom f=new mainform();
f.textbox.text="test1";
分配的值但不重置值..
请回复。
提前谢谢。
the value to assigned but not reset the value..
pls reply.
Thank''s in advance.
推荐答案
不,它不能用于新实例......
看看这个:在两个表格之间传递信息,第2部分:儿童到家长 [ ^ ]
No, it won''t work with a new instance...
Have a look at this: Transferring information between two forms, Part 2: Child to Parent[^]
对不起Athi,但我觉得你的问题很难理解。您是否可以尝试以另一种方式解释并可能发布一些您想要实现的内容的代码?
但是,我怀疑这些文章可能是用于你:
在两种表格之间传递信息,第1部分:父母对儿童 [ ^ ] http://www.codeproject.com/Tips/548052/Transferring-information-between-two-forms-Part-1 [ ^ ]
转让两种表格之间的信息,第2部分:儿童到父母 [ ^ ] http://www.codeproject.com/Tips/548131/Transferring-information-between-two-forms-Part-2 [ ^ ]
将数据传回服务表单 [ ^ ] http://www.codeproject.com/Articles/32551/Pass-data-back到呼叫形式 [ ^ ]
I''m sorry At but I find your question quite incomprehensible. Could you try to explain in another way and possibly post some samle code of what you''re trying to achieve?
However, I suspect that these articles might be of use to you:
Transferring information between two forms, Part 1: Parent to Child[^]http://www.codeproject.com/Tips/548052/Transferring-information-between-two-forms-Part-1[^]
Transferring information between two forms, Part 2: Child to Parent[^]http://www.codeproject.com/Tips/548131/Transferring-information-between-two-forms-Part-2[^]
Pass data back to the calling form[^]http://www.codeproject.com/Articles/32551/Pass-data-back-to-the-calling-form[^]
这篇关于主要形式价值变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文