how to control a control located in another form in .net like we did in vb 6: form1.textbox1.text=" " thanks for help!
Printable View
how to control a control located in another form in .net like we did in vb 6: form1.textbox1.text=" " thanks for help!
Like that? Form data are not static like in old VB. Each time you open the form, it is a new instance of that form. There are ways of saving that info and then loading it onload events and other ways to work around this.PHP Code:Dim dlg as New form1
dlg.textbox1.text = ""
dlg.show()
Let's say if you have form1 and form2
In form2 control form1 objects is
VB Code:
dim f1 as form1 f1 = new form1() f1.textbox1.text