PrivateSub inBox(ByVal txt AsString, ByVal ttl AsString, ByVal field1 AsString, ByVal field2 AsString, ByVal field3 AsString)
Dim f AsNew InputBoxForm
f.lblText.Text = txt
f.Text = ttl
f.txt1.Text = field1
f.txt2.Text = field2
f.txt3.Text = field3
f.ShowDialog()
Me.txtName.Text = f.txt1.Text
Me.txtAge.Text = f.txt2.Text
Me.txtColor.Text = f.txt3.Text
EndSub
PrivateSub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
Dim f2 AsNew Form1
f2.txtName.Text = Me.txt1.Text
f2.txtAge.Text = Me.txt2.Text
f2.txtColor.Text = Me.txt3.Text
Me.Close()
EndSub