locke06037
Newcomer
- Joined
- Oct 16, 2007
- Messages
- 2
I have 3 forms shown this way.
Form1 has a textBox1 and a button1 controls, now my problem is how can I pass the text in (form3)textBox1.Text to (form1)textBox1.Text by using the button1_Click since this.textBox1.text refers to the sender(form3). Any ideas?
Code:
Form1 form1 = new Form1();
Form1 form2 = new Form1();
Form1 form3 = new Form1();
form1.Show();
form2.Show();
form3.Show();
Form1 has a textBox1 and a button1 controls, now my problem is how can I pass the text in (form3)textBox1.Text to (form1)textBox1.Text by using the button1_Click since this.textBox1.text refers to the sender(form3). Any ideas?