Scrolling Title in Windows Form

This Blog shows how to scroll the title text of windows form using timer control. For this we need one Timer Control. Now set Interval property of Timer Control to 150 / 200 / 1000 etc. as desired (Note: - Interval Time is taken as milliseconds). Following Code snippet can paste into Timer_Tick Event, and enables the Timer at Form_Load Event.

 

 

      Private Sub Timer_Tick(…….)

                   Me.Text = Mid(Me.Text, 2, Len(Me.Text)) & Mid(Me.Text, 1, 1)

          End Sub

Listing 1

 

          Private Sub Form_Load(…….)

                   Timer.Enabled = True

          End Sub

Listing 2

 

Output:

           

Following snapshots represent intended result of scrolling title text for windows form.

 

 

image004.jpgFigure 1


image006.jpg Figure 2


image008.jpg Figure 3