怎样在form1中给form1里的form2里buttom1赋text值?
在form1里有个buttom1,buttom2,panel1
在form2里有个buttom1
在form1用buttom1单击事件中用代码
Dim f2 As New form2()
Panel1.Height = f2.Height - 34
f2.TopLevel = False
f2.Parent = Me.Panel1
f2.Show()
加入form2到form1的panel1中
请问buttom2的单击事件修改form2的buttom1怎么写?
问题点数:0、回复次数:2Top
1 楼brightheroes(在地狱中仰望天堂)回复于 2004-09-04 20:52:08 得分 0
在Button2中
要修改Form2的Button1
那么要在Form2中作一个属性,来提供对Private Button的访问Top
2 楼brightheroes(在地狱中仰望天堂)回复于 2004-09-04 20:53:31 得分 0
foreach(Control c in this.Panel1.Controls)
{
if ( c is Form2)
{
Form2 f = (Form2)c;
f.YourButtonProperty.......
}
}Top
相关问题
- struts中给<html:text>赋值的问题
- 把edit1的text赋值用C++怎么写呀,是不是EDIT1—》text = 10;
- 把edit1的text赋值用C++怎么写呀,是不是EDIT1—》text = 10;
- 用客户端脚本怎样给text赋值?
- Access 问题,给 Text 属性赋值(在线等)
- text控件赋值问题,难道是vb的bug?
- 在struts中如何动态的给html:text赋值
- 有关STRUTS的html:text赋value值的问题?
- 在Form上放上五个buttom控件分别对应0、1、2、3、4值,一个Text控件,请问怎样按五下buttom1,Text上出现五个0?
- ***急**vb中如何将字符串值赋给水晶报表中的text




