VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Scrolling Title/Label Caption

by Dustin R Davis (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

Simple, 4 lines of code, timer function that will scroll the title of your form, or a label caption, or the caption of a button or whatever. scroll something. this is very simple, and i dont know if anythign else like it is posted, i dont look before i post. I just thought this was neat since i'm bored and at work...

Rate Scrolling Title/Label Caption

'Can be form.caption, text1.text, label.caption, button1.caption, whatever.
Private Sub Timer1_Timer()
Dim Length As Long
DoEvents
Length = Len(Form1.Caption) - 1
Form1.Caption = Right$(Form1.Caption, Length) & Left(Form1.Caption, 1)
End Sub

Download this snippet    Add to My Saved Code

Scrolling Title/Label Caption Comments

No comments have been posted about Scrolling Title/Label Caption. Why not be the first to post a comment about Scrolling Title/Label Caption.

Post your comment

Subject:
Message:
0/1000 characters