HELP

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Dec 2008
Posts: 11
Reputation: wookinhung is an unknown quantity at this point 
Solved Threads: 0
wookinhung wookinhung is offline Offline
Newbie Poster

HELP

 
0
  #1
Dec 17th, 2008
Dear Sir(s)

I currently have problems with VB6. My problem is:

I want to link data in one form with another. For example:
If someone inputs an information in a textbox in Form1, I want Form2 to be able to get the inputted information and process it.

Thanks
wookinhung
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: HELP

 
0
  #2
Dec 17th, 2008
Hi,

In Form Load of Form2, write this code:

Me.Text1.Text = Form1.Text1.Text
(Here you have to show Form2, While Form1, is still Loaded)
OR
In Lost Focus of
Form1's Text1,
Form2.Text1.Text = Me.Text1.Text
OR
Keep a Public Variable in .bas module, populate variable in Form1's Text_lostfocus event, and Access that variable in Form's Load event

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 11
Reputation: wookinhung is an unknown quantity at this point 
Solved Threads: 0
wookinhung wookinhung is offline Offline
Newbie Poster

Re: HELP

 
0
  #3
Dec 17th, 2008
Hi Veena,

Thanks a lot! Problem solved with your help!

Regards,
wookinhung
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 436 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC