954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

[HELP] Textbox to Label

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. >.

iRoroKun
Newbie Poster
1 post since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

You can do the following -

Private Sub Text1_LostFocus()
Label1.Caption = Text1.Text
End Sub
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

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
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

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

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

Just saw it Jx, me bad ;)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

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

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You