Spinning, Rolling? Text Effect - Custom Controls - Labels

Hi, I'd like to emulate the effect of spinning text, in particular numbers on a label control (doesn't have to be a label control, as long as it's "clean" (no arrows or scroll bars etc)). So a custom control will also do.

Basically, I am after emulating the effect of having a number roll down and a way to control this "speed" so I can make it roll fast or roll slowly. To ensure I am clear about this, think of fruit machines and the way they roll down, well, imagine a fast spinning(rolling?) number instead. When I say spin I do NOT mean rotate!!

So, either a code snippet to point in the right direction or a custom control will do.
LVL 7
Gene_CypAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gene_CypAuthor Commented:
Hi Cutebug, I wasn't trying to rotate.. the word spin may give the wrong imrpession I  went to some extend in my explanation to explain that I want the numbers to "roll". :)
 
Anyhow I've come up with a solution already inspired by something else.
I can put a label control inside a panel and then:

private void RollText(Panel panel, Label label)
{
if (label.Top < panel.Size.Height)
label.Top += SHIFTDOWN;
else
label.Top = -panel.Size.Height;
}
const int SHIFTDOWN = 10; // arbitrary number
And call this method from a timer that I control its interval time. Small interval will make it roll down fast. Increasing the itnerval makes it roll slower..
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

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.