Scrolling text

M

Mark Brown

Is there any way to load a text box (or label) with text and then have the
text continuously roll in a loop from top to bottom (or actually bottom to
top) and control the speed?

Thanks,
Mark
 
G

Guest

I'm not at a computer where I can test this right now, but in case you need a
quick answer that *should* work...

Put this code in the Tick event of a Timer control.
Change the 5 to match your desired scrolling speed.

giPos += 5
Me.txtStatus.SelectionStart = giPos
Me.txtStatus.SelectionLength = 0
Me.txtStatus.ScrollToCaret()

Hope that helps (and works)!

PJ Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top