C# Winform中如何获取父窗体中控件的信息
作者:C/S框架网  发布日期:2018-08-04 22:13:59
  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


下载源码:

点击下载附件 点击下载附件 (如下载失败,请邮件通知我们寄回给您,或QQ:23404761留言.)
上一篇 下一篇