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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple question: How to pass textbox.text to other forms?

Status
Not open for further replies.

Madz

Technical User
Jan 31, 2001
33
0
0
SE
I Have two forms.
In one of them i load a textbox with some text (form2).
I then want to make some things with the text in form1

How to pass over the information from form2 to form1 ?
It doesn´t work to use form2.test.text cause all the stings that i receive are empty!

thanks in advance
/mats.
 
Two solutions:
1.Set the value of in the Validate event of the first textbox like:
form2.test.text = this.value

2.A global variabile.
Put something like this in a module and use this to pass your values
Public strWhatever as String

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top