Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

produce ticker tape in vb.net 2005

Posted on 2007-11-25
4
Medium Priority
?
916 Views
Last Modified: 2013-11-26
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
Comment
Question by:ljhodgett
  • 2
4 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20345081
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
 

Author Comment

by:ljhodgett
ID: 20345380
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
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20345604
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
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 20345804
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Integration Management Part 2
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question