Results 1 to 2 of 2

Thread: Scrolling label

  1. #1

    Thread Starter
    Member
    Join Date
    May 2003
    Location
    India
    Posts
    37

    Scrolling label

    Hi,

    I wanted to know how to scroll a label from left to right and stop scrolling when the label reaches the right border of the form.please help me out in this.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    The only problem it that it flickers a bit...

    VB Code:
    1. Private Sub Form_Load()
    2.  ScaleMode = vbPixels 'It goes faster with pixels
    3.  Timer1.Interval = 1
    4.  Timer1.Enabled = True
    5. End Sub
    6.  
    7. Private Sub Timer1_Timer()
    8.  Label1.Left = Label1.Left + 1
    9.  If Label1.Left + Label1.Width = Form1.ScaleWidth Then
    10.   Timer1.Enabled = False
    11.  End If
    12. End Sub


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width