Results 1 to 3 of 3

Thread: Easy - Scrolling Text On Your Form

  1. #1

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Post Easy - Scrolling Text On Your Form

    This will give you scrolling text accross a form, even if the form is resizable.

    You need 1 timer: enabled, interal set about 50
    Also 1 label, with a caption.

    in the timer:

    VB Code:
    1. Private Sub Timer1_Timer()
    2.  
    3. If Label1.Left <= "0" - Label1.Width Then
    4. Label1.Left = Form1.Width
    5. End If
    6.  
    7. Label1.Left = Label1.Left - 100
    8.  
    9. End Sub
    -BoKu-

  2. #2

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Re: Easy - Scrolling Text On Your Form

    Also done similar for falling text:

    VB Code:
    1. Private Sub Timer2_Timer()
    2.  
    3. If Label2.Top >= Form1.Height Then
    4. Label2.Top = "0" - Label2.Height
    5. End If
    6.  
    7. Label2.Top = Label2.Top + 100
    8.  
    9. End Sub
    -BoKu-

  3. #3
    Lively Member FiOh's Avatar
    Join Date
    Sep 2006
    Location
    Another World
    Posts
    104

    Re: Easy - Scrolling Text On Your Form

    This is fun!!

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