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
"Will Gillen" <gi******@nsuok.edu> wrote in message
news:e2**************@TK2MSFTNGP11.phx.gbl...
I need to have a "scrolling" text label or textbox at the bottom of my
window to show the URL of where a song is being played from. I want the
text to scroll on a single line from left to right in case the URL is
longer
than the width of the textbox/text label.
Is there a native way to do this in VB.NET?