by Thorin (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 7th January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Scroll text/caption in 6 lines of code
Private Sub Timer1_Timer()
Dim i As Integer
i = Len(Text1.Text) - 2 'Number of chars to remove (less=more res)
Text1.Text = Right$(Text1.Text, i) 'Remove characters
If Text1.Text = "" Then 'Run out of text to scroll
Text1.Text = YourText 'Reset to Credits
End If
End Sub