R
Rado
Hello.
I have Two forms.
In Form1 I have 2 textboxes (textbox1, textbox2).
And one Button.
When I click to button form2 Show
****
dim frm as new form2
frm.showdialog
*****
That's OK.
And From Form2 A want set Text To textbox2 and textbox2.
I try write
dim frm as new form1
frm.txttbox2.text ="name"
....
....
But Nothing happend.
And when I write dim frm as form1, Complier give error. "Object reference
not set to an instance of an object."
How Can I do it?
Thanks for answers
I have Two forms.
In Form1 I have 2 textboxes (textbox1, textbox2).
And one Button.
When I click to button form2 Show
****
dim frm as new form2
frm.showdialog
*****
That's OK.
And From Form2 A want set Text To textbox2 and textbox2.
I try write
dim frm as new form1
frm.txttbox2.text ="name"
....
....
But Nothing happend.
And when I write dim frm as form1, Complier give error. "Object reference
not set to an instance of an object."
How Can I do it?
Thanks for answers