G
Guest
Hi,
I have Form1 with a TextBox control on it and I have Form2 that I am showing
from Form1.
private void btnShowForm2_Click(object sender, EventArgs e)
{
Form2 objForm2 = new Form2();
objForm2.ShowDialog();
}
What I would to do is to change the TextBox text property on Form1 from
Form2 like for example something like that:
Form1.txtTextBox1.Text = "abc";
In other words, how can I rich the controls on the parent form?
Thanks in advanced for any help.
Asaf
I have Form1 with a TextBox control on it and I have Form2 that I am showing
from Form1.
private void btnShowForm2_Click(object sender, EventArgs e)
{
Form2 objForm2 = new Form2();
objForm2.ShowDialog();
}
What I would to do is to change the TextBox text property on Form1 from
Form2 like for example something like that:
Form1.txtTextBox1.Text = "abc";
In other words, how can I rich the controls on the parent form?
Thanks in advanced for any help.
Asaf