I need a help, do you know how can I automatically update a label by just putting something in a textbox? Let me give an example, when I put "Hello" in the textbox, the label will automatically change to "Hello". I hope you guys can help me. Thanks in advance!


Problem Solved sorry I don't know how to delete the thread. >.<

You can do the following -

Private Sub Text1_LostFocus()
Label1.Caption = Text1.Text
End Sub

If you want the label to show the caption as you type, use the following -

Private Sub Text1_Change()

Label1.Caption = Text1.Text
End Sub

Seems He/she already solved it,a few minutes after this thread posted:)

commented: :p +2

Just saw it Jx, me bad ;)

So by the way, hello, long time no hear... :)

commented: Hello Andre.. :) +14
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.