Hi Will,
One technique is to use a Timer control and in its Tick handler manipulate a
string to create a scrolling effect e.g.
Private _NowPlaying As String = "This test will get scrolled."
Private Sub NowPlayingTimer_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles NowPlayingTimer.Tick
_NowPlaying = _NowPlaying.Substring(_NowPlaying.Length - 1, 1) &
_NowPlaying.Substring(0, _NowPlaying.Length - 1)
NowPlayingLabel.Text = _NowPlaying
End Sub
_NowPlaying is a String variable declared at the class level (a class member
field) that holds the string currently being displayed in a label named
NowPlayingLabel.
Each time the Timer's Tick event is handled the _NowPlaying string is
changed by pulling a character off one end of the string and placing at the
other end of the string.
_NowPlaying = _NowPlaying.Substring(_NowPlaying.Length - 1, 1) &
_NowPlaying.Substring(0, _NowPlaying.Length - 1)
After the modification the NowPlayLabel.Text is updated with the
modification.
NowPlayingLabel.Text = _NowPlaying
The end result is a scrolling text effect in the NowPlayingLabel.
Setting the Timer's Interval to 200 produces a nice scroll effect.
--
Mike
Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com