Moving/Scrolling Labels
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
2 posts
Page 1 of 1
Hey,
I was bored so I thought I could make a new topic. This one is pretty easy. It's a code that makes your Label/Text to move from the side of the form to the other (Right to Left) like in theaters. hehaho;
Ok, Let's start!
You'll need this things. (Shown in the picture below.) After you set up the things above. You need to adjust your Label/text.
Move your label to the right side of the form. Make sure it's hidden from the form. (As shown below) Let's move on to coding.
Add this on Timer1_tick
I hope this helps.
I was bored so I thought I could make a new topic. This one is pretty easy. It's a code that makes your Label/Text to move from the side of the form to the other (Right to Left) like in theaters. hehaho;
Ok, Let's start!
You'll need this things. (Shown in the picture below.) After you set up the things above. You need to adjust your Label/text.
Move your label to the right side of the form. Make sure it's hidden from the form. (As shown below) Let's move on to coding.
Add this on Timer1_tick
Code: Select all
We are done! Try and debug. If the label/text reaches the form in the left, just wait for 1 second. It will come back again. Label1.Left -= 5
If Label1.Left <= -Width Then
Label1.Left = Width
End If
I hope this helps.
You do not have the required permissions to view the files attached to this post.
I've done this before with a panel to shift images like a level background for scrolling platformers. It's fun to play around with it and experiment.
Nice tutorial. You can use it to make flashing and colour changing labels too, just add the ForeColor in the timer event.
Nice tutorial. You can use it to make flashing and colour changing labels too, just add the ForeColor in the timer event.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
2 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023