Scrolling text

  • Thread starter Thread starter Mark Brown
  • Start date Start date
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
 
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
 
Back
Top