I have one MDI Form, With two Child Form named MDIParent1,Form1,Form2. MDI will Load with showing/loading this two child form in it.
private void MDIParent1_Load(object sender, EventArgs e)
{
Form childForm1 = new Form1();
childForm1.MdiParent = this;
childForm1.Show();
Form childForm2 = new Form2();
childForm2.MdiParent = this;
childForm2.Show();
}
In Form1 there is a textbox1 and a Button. And in form2 there is textbox2. So what i am trying to is when I write sometext in Form1's Textbox1 and then Click on Form1's Button, That same text will be write in Form2's Textbox2.
I Tried a lot. But Dosnt get output. the values are passing through one child form to other. but Textbox.text property is not updating.
I tried it Without MDI Form. The Form1 And Form2 will opened independently. and I have to close and reopen Form2 each and every time when i click on Form1's Button. It Works little bit. But I need it in MDI Form. While Both Child Forms were opened in MDI and then I want to Update property of textbox (In short I need to do this form2.textbox.text = Form1.textbox.text where Form1 and Form2 both are Child forms)
Regards, Salil