• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 920
  • Last Modified:

produce ticker tape in vb.net 2005

Hi,

I am trying to find out how to produce a ticker tape using a label please. so it scrolls from right to left and disapears off the left hand side and then starts again on the right.

Many Thanks
Lee
0
ljhodgett
Asked:
ljhodgett
  • 2
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
you can create by yourself.
Create a timer object in your form, implement the Tick event with this content:

Private Shared Sub Timer1_Tick(myObject As Object,  myEventArgs As EventArgs)
        yourLabel.Text = yourLabel.Text.Substring(1) & yourLabel.Text.Substring(0,1)
End Sub
0
 
ljhodgettAuthor Commented:
Hi,

Thank you for you help. The only issue I have is that I want the whole text to disapear off the label control before it scrolls again.

Many Thanks
Lee
0
 
Jaime OlivaresSoftware ArchitectCommented:
OK, there are many tricks, the simplest is to add many white spaces at the end of the text:

yourLabel.text = "SOME TEXT TO ROTATE                                        "

But resize your control to show just "SOME TEXT TO ROTATE"
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now