How do I get the textbox value from Form1 to form2 ?
Help help Help !!!!!;)
Printable View
How do I get the textbox value from Form1 to form2 ?
Help help Help !!!!!;)
Answered lots of time in this forum. Just search.
i searched but cant find this???
lol , everyone scapes from this question . It's messy in some cases . anyways , try this
in form2 put this code :
Dim frm1 as new form1
'assign the value returned to textbox on your form2
textbox1.text =frm1.textbox1.text
I know i had to ask about it too. :D
This is my thread regarding this subject: Data Across Two Forms
I wonder why form objects arent automaticaly refrenced by the entire project like they were in VB6. It's as if each form knows nothing about any other form in the entire project with .net. That's why you have to create the form in memory (again) in order to use it. It seems like a huge waste of memory since the form is already there, there is no reason to create it again...:confused:
By the same token you can blame all refrence type objects.Quote:
I wonder why form objects arent automaticaly refrenced by the entire project like they were in VB6. It's as if each form knows nothing about any other form in the entire project with .net. That's why you have to create the form in memory (again) in order to use it. It seems like a huge waste of memory since the form is already there, there is no reason to create it again...
MS guys are doing this only to achieve something can be difficult in VB6 which called Full OOP .;)
Everyone here on this forum needs to bookmark this link so they can refer this type of question to it. It will explain to VB6 people how to work with form objects in VB.Net
http://msdn.microsoft.com/library/de...adingtonet.asp