Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use 1 Textbox to change label captions?

Status
Not open for further replies.

jcave

ISP
Jan 11, 2001
1
US
How do I use the LostFocus command to move 1 Textbox from label to label in order to change the labels captions?
 
I understand your question as follows: You enter a text into a TextBox and then want to propagate that text to several Label Captions. Right?

If so, then you should know that the Label Control itself has no LostFocus event.

Therefore within the LostFocus event of the TextBox you have to update every label caption yourself:

With TextBox1
Label1.Caption = .Text
Label2.Caption = .Text
...
End With
_________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top