Hi All,

I try to make my caption text scrolling.
Actually, i already make it scrolling but after the last letter it would appear all of text and scrolling again.
I want the text scrolling one by one, after the last letter it following by the first letter.
How i can do that?

Any help would be appreciated.
Thank you.

Recommended Answers

All 5 Replies

i already make it scrolling

Post the code..how far you doing this.

Thank you for replying jx.
This how far i go with scrolling text :

Private Sub ScrollignText(msg As String)
    Dim t As Variant
    Static i As Integer
    i = i + 1
    If i = Len(msg) Then
        i = 0
    Else
        t = Mid(msg, i, Len(msg))
    End If
    Me.Caption = t
End Sub
Private Sub Timer1_Timer()
    ScrollignText "This is a scrolling text"
End Sub

Please help. Maybe i missing something here.

Change this line (at line # 8):

t = Mid(msg, i, Len(msg))

With this :

t = Mid(msg, i, Len(msg)) + Left(msg, i)

Hope it helps :)

commented: Really helpfull person. +2
commented: Good eyes for this.. +2

Just give feedback if you have a problem

It's Working sir..Thank you very much.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.