hi


i want to pass a text from a textbox in form1 to a label in form2 , but the text in form1 is retrieved from a database. how could i do it??:

Recommended Answers

All 4 Replies

i want to pass a text from a textbox in form1 to a label in form2

This following code will transfer text in textbox in form1 to label in form2.

Private Sub Form_Load()
Label1.Caption = Form1.Text1.Text
End Sub

but the text in form1 is retrieved from a database.

Different question. so you need to make new thread.

This following code will transfer text in textbox in form1 to label in form2.

Private Sub Form_Load()
Label1.Caption = Form1.Text1.Text
End Sub

Different question. so you need to make new thread.

Thanks for your reply. Im new to VB6 will this work in VB6..

..... will this work in VB6..

100%

but the text in form1 is retrieved from a database.

Different question. so you need to make new thread.

What? Same question. Additional info. And there's no problem asking 2 questions in the same post... :icon_rolleyes:

Thanks for your reply. Im new to VB6 will this work in VB6..

In the VB4/5/6 forum, we tend not to answer using Python techniques. That would confuse people. :icon_wink:

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.