Scrolling Text [TUT]

Posts 1–9 of 9 · Page 1 of 1
Scrolling Text [TUT]
Welcome to my Scrolling text tutorial!

You will need:

A label
A timer


First add this:
Code:
 Dim i As Integer
    Dim strmessage As String
and this code to the timer and make it enabled!

Code:
Try

~THIS writes the text~
            i += 1 'Increase message
            Label1.Text += strmessage.Substring(i - 1, 1) 
        Catch ex As Exception
~THIS will reset the message to 0~

            i = 0 
            Label1.Text = ""
            strmessage = "MESSAGE HERE" 
        End Try

Why use try, because if use it you will get a error!




why do you need a timer? looks like the timer doesn't do anything
Quote Originally Posted by stevethehacker View Post
why do you need a timer? looks like the timer doesn't do anything
Try it out It will write a scrolling message! very cool!
k i'll try it out

edit

cool I got it to work.Now I see why you need a timer. You didn't give much instructions

here is video proof. thnks for this
Quote Originally Posted by stevethehacker View Post
k i'll try it out

edit

cool I got it to work.Now I see why you need a timer. You didn't give much instructions

here is video proof. thnks for this
And I edited a bit!
Hmm, thanks i guess
wow o.o i already made scrolling text on the project im currently working on lmao, but i used a code thats easier
Quote Originally Posted by guza44_44 View Post
wow o.o i already made scrolling text on the project im currently working on lmao, but i used a code thats easier
U wanna share it?
okay this one goes across the size of your application

just set your timer to enabled and set the interval to however fast u want and put this code inside the timer

seems longer cus i added an explanation next to each

this one is around the same size just more user friendly for newbies lol

Code:
If Label1.Left = 180 Then ' 180 is the size of your width (change it to your size)
            Label1.Left = -155 '-155 where it starts (you can change that)
            Label1.Left += 5 'makes it move its width by 5 every interval
        Else
            Label1.Left += 5 'makes it move its width by 5 every interval

        End If
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?