CodeItBetter Programming Another VB Programming Blog

How to scroll the form caption

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
'Forms - How to scroll the form caption
Option Explicit
 
Private Sub Form_Load()
    Form1.WindowState = 2
    Form1.Caption = Space(170) & "Welcome to my VB Program"
End Sub
 
Private Sub Timer1_Timer()
    Form1.Caption = Right(Form1.Caption, Len(Form1.Caption) - 1)
    If Form1.Caption = "" Then Form1.Caption = Space(170) & "Welcome to my VB Program"
End Sub
Filed under: Forms Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.