Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21848

how to change caption of the wanted label from project?

$
0
0
hello
i have a question
for example i have so many label's
and one textbox
now i want when i write 3 number on the textbox and click on the form this command executes
Code:

label3.caption = "vb6"
and if i write 1 on text box it happens to the label1
and so on
and my command must be something like this but don't know how to do that
Code:

Private Sub Form_Click()
Label(Text1.Text).Caption = "vb6"
End Sub


Viewing all articles
Browse latest Browse all 21848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>