Using System;
Using System. Collections. Generic;
Using System. ComponentModel;
Using System. Data;
Using System. Drawing;
Using System. Text;
Using System. Windows. Forms;
Namespace TestMouseMove
{
Public partial class Form4: Form
{
Public Form4 ()
{
InitializeComponent ();
}
# Refresh the value of the parent window in the region subwindow
Private string strLabel1 = "";
Public string StrLabel1
{
Get
{
Return strLabel1;
}
Set
{
StrLabel1 = value;
This. label1.Text = strLabel1;
}
}
# Endregion
Private void button#click (object sender, EventArgs e)
{
Form5 form5 = new Form5 (this); // upload this
Form5.Show ();
}
}
}
Using System;
Using System. Collections. Generic;
Using System. ComponentModel;
Using System. Data;
Using System. Drawing;
Using System. Text;
Using System. Windows. Forms;
Namespace TestMouseMove
{
Public partial class Form5: Form
{
Form4 form4 = new Form4 ();
Public Form5 (Form4 formFrm) // This constructor contains Parameters
{
Form4 = formFrm; // This must have
InitializeComponent ();
}
Private void button#click (object sender, EventArgs e)
{
Form4.StrLabel1 = this. textBox1.Text;
}
}
}