Passing values to a new form...

UberDan

Member
Joined
Nov 27, 2005
Messages
18
Programming Experience
Beginner
Ok, I'm opening up a second form using the following code:

VB.NET:
Dim frmAdd As New frmAdd
frmAdd.MdiParent = Me
frmAdd.Show()

and I need to pass it two pieces of data which are in text boxes titled txtEnter1 and txtEnter2. Two text boxes on the new form should automatically be filled out with the information from these two text boxes on the original form.

How do I go about this?
 
in frmAdd just make a Friend Sub that accepts two string arguements and in this sub assign the two values to their appropriate textbox's and then call it's show method after calling that sub
 
JuggaloBrotha said:
in frmAdd just make a Friend Sub that accepts two string arguements and in this sub assign the two values to their appropriate textbox's and then call it's show method after calling that sub
erm... could you possibly post an example? I'm not entirely sure how to do that...
 
Back
Top