form1到form2 [英] form1 to form2

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

问题描述

我在form1中有一个label1,在form2中有一个第二个label2。我如何将label1.text移动到label2.text ???? thanksss。

I have a label1 in form1 and a second label2 in form2. how i can move label1.text to label2.text ????thanksss.

推荐答案

简单:在Form2中创建一个属性并从Form1中设置它。然后该物业将价值放在正确的位置。

见这里:在两种表格之间传递信息,第1部分:父母对儿童 [ ^ ]
Simple: create a property in Form2 and set that from Form1. The property then puts the value in teh correct place.
See here: Transferring information between two forms, Part 1: Parent to Child[^]


这篇关于form1到form2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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