public Form2()
{
InitializeComponent();
}
public Form2(Form parentForm)
{
InitializeComponent();
this._parentForm =parentForm;
}
........
........
//更新父窗口中文本框中的值!
private void button1_Click(object sender, System.EventArgs e) {
((Form1)_parentForm).txtContent.Text =this.txtValue .Text ; }
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库C窗体间传值的几种方法(8)在线全文阅读。
相关推荐: