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

Recommended Answers

All 2 Replies

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

Hi Veena,

Thanks a lot! Problem solved with your help!

Regards,
wookinhung

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.