G
Guest
After trying to solve thois bymyself i gave up. I was i visual basic 6
programmer, now i m getting to java and c#. The problem i have is simple, but
it seems to be a hell for me.
<EXPLANATION>
I' ve 2 forms, Form1 is one class and Form2 is another class. On form1 i've
a textbox (textBox1), and on form2 i've a button(button1). What i am trying
to do is when i press the button on form2 i want to change the value of the
textBox1 placed on form1.
<CODE>
On Form1 a do the following:
Form2 v_Form = new Form2();
v_Form.Show.
with that a create a new instance of Form2 and i show it then.
On Form2 i did the following:
private void button1_click(.....)
{
Form1.ControlCollection["textBox1"].text="Marco";
}
</CODE>
</EXPLANATION>
I've tryied many otrher ways, to remenber that i set the control (textBox1)
public in Form1.
Can you please help me on this.
Thank you
Me_Titus
programmer, now i m getting to java and c#. The problem i have is simple, but
it seems to be a hell for me.
<EXPLANATION>
I' ve 2 forms, Form1 is one class and Form2 is another class. On form1 i've
a textbox (textBox1), and on form2 i've a button(button1). What i am trying
to do is when i press the button on form2 i want to change the value of the
textBox1 placed on form1.
<CODE>
On Form1 a do the following:
Form2 v_Form = new Form2();
v_Form.Show.
with that a create a new instance of Form2 and i show it then.
On Form2 i did the following:
private void button1_click(.....)
{
Form1.ControlCollection["textBox1"].text="Marco";
}
</CODE>
</EXPLANATION>
I've tryied many otrher ways, to remenber that i set the control (textBox1)
public in Form1.
Can you please help me on this.
Thank you
Me_Titus