solukbeniz Posted July 11, 2003 Posted July 11, 2003 hello i have 2 forms called "form1" and "form2" form2 has a textbox. form1 has a button. when i clicked to button how can i get the value of textbox on form2? Code in Form1: Dim form2 As New Form2() MsgBox(form2.TextBox1.Text) Code in Form2: TextBox1.Text="HELP" Please help me. This is very important for me...... Quote
*Experts* mutant Posted July 11, 2003 *Experts* Posted July 11, 2003 If im understanding you correctly, and you set the value of the textbox in code in form load event so its executed right away then this should work. Are you opening any instances before this one? What I mean by this is if you open any others and then you modify the textbox. If thats the case then it wont work becuase you create a new instance all the time. Again, im not really sure what you want :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.