C# Winform中如何获取父窗体中控件的信息
C# Winform中如何获取父窗体中控件的信息
C# Code:
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = this.Owner as Form1;
this.textBox1.Text = form1.GetText();
}
private void button2_Click(object sender, EventArgs e)
{
Form1 form1 = this.Owner as Form1;
this.textBox1.Text = form1.textBox1.Text;
}
//来源:C/S框架网(www.csframework.com) QQ:23404761
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = this.Owner as Form1;
this.textBox1.Text = form1.GetText();
}
private void button2_Click(object sender, EventArgs e)
{
Form1 form1 = this.Owner as Form1;
this.textBox1.Text = form1.textBox1.Text;
}
//来源:C/S框架网(www.csframework.com) QQ:23404761
下载源码:
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网