Feb 9, 2005 #1 huichun Programmer Jul 24, 2002 8 US I have two forms. form1 and form2 in form1 I have a textbox let user type in data then I grab that data put into form2. How do I do it, any thought? Thanks, Huichun
I have two forms. form1 and form2 in form1 I have a textbox let user type in data then I grab that data put into form2. How do I do it, any thought? Thanks, Huichun
Feb 9, 2005 #2 pzmgmb Programmer Apr 2, 2003 115 US To put the data from the textbox in Form1 into Form2, like this maybe: dim frm as new Form2 frm.txtText = Form1.txtText Upvote 0 Downvote
To put the data from the textbox in Form1 into Form2, like this maybe: dim frm as new Form2 frm.txtText = Form1.txtText
Feb 9, 2005 #3 sillysod Technical User Jan 6, 2004 300 GB Im not sure that will work since you need to reference a particular instance of the form Upvote 0 Downvote
Feb 26, 2005 #4 orb353 Technical User Feb 16, 2005 7 US Dim c As New Form2() c.TextBox1.Text = TextBox1.Text This transfers the text in TextBox1 in Form1 to Text in TextBox1 in Form2 Upvote 0 Downvote
Dim c As New Form2() c.TextBox1.Text = TextBox1.Text This transfers the text in TextBox1 in Form1 to Text in TextBox1 in Form2
Feb 28, 2005 #5 ThatRickGuy Programmer Oct 12, 2001 3,841 US This FAQ has what you are looking for: http://www.tek-tips.com/faqs.cfm?fid=5671 -Rick ---------------------- http://www.ringdev.com Upvote 0 Downvote
This FAQ has what you are looking for: http://www.tek-tips.com/faqs.cfm?fid=5671 -Rick ---------------------- http://www.ringdev.com