In form1 :
in form2:
The enable function doesnt work ... and i realized that it caused by the completely new instance of my form1 class.
So my question is how to get to a reference to that specific form instance?
Thanks.
Code:
private void Form1_Load(object sender, EventArgs e) { textBox1.Enabled = false; }
in form2:
Code:
private void button1_Click(object sender, EventArgs e) { Form1 form1 = new Form1(); form1.textBox1.Enabled =true; }
So my question is how to get to a reference to that specific form instance?
Thanks.
Comment