Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with data swapping between forms

Status
Not open for further replies.
Jul 22, 2002
25
US
A dummy needs help,

I have a form (Form1), that has a textbox (Text1) and a button on it that opens another form (Form2). Form2 does some stuff, and then you click on a button on Form2 that closes the form, and returns to Form1, with the textbox (Text1) on Form1 containing the value of a textbox on Form2.

Clear?

How can I do that easily?

Mr. Pickles
 
In the code for the button that closes Form2:

Code:
  Form1.Text1.Text = Form2.Text1.Text
  Form2.Hide
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top