Solved

produce ticker tape in vb.net 2005

Posted on 2007-11-25
4
912 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 500 total points
ID: 20345804
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …

762 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