by Walter Richardson a.k.a Striver2000 Christian Productions (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 20th November 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This code allows you to display different messages in a label without have to change the caption and use a whole bunch of space.
Words(1)="Walter"
Words(2)="Richardson"
Words(3)="also known as Striver2000"
End Sub
'Place three timers on your form name timer1,timer2,and timer3'
'Make timer1 interval 1000 and timer2 2000 and timer3 3000'
'Make timer2 and timer3 enabled property false'
'Make a label on your form and name it label1'
Private Sub timer1_time()
label1.caption= "Words(1)"
timer1.enabled=false
timer2.enabled=true
End Sub
Private Sub timer2_time()
label1.caption="Words(2)"
timer2.enabled=false
timer3.enabled=true
End Sub
Private sub timer3_time()
label1.caption="Words(3)"
timer3.enabled=false
timer1.enabled=true
End Sub
No comments have been posted about This code allows you to display different messages in a label without have to change the caption an. Why not be the first to post a comment about This code allows you to display different messages in a label without have to change the caption an.