Solved

produce ticker tape in vb.net 2005

Posted on 2007-11-25
4
909 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 69

Accepted Solution

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now