TrackBar Event Handling Help

cmoran624

New member
Joined
Feb 25, 2010
Messages
3
Programming Experience
Beginner
Hey,

I currently have a track bar set up in a music player so that it moves up to the duration of a track via a timer. Beside this track bar is a label that also increments the track's current time 1 second at a time.

My problem is that I need to be able to tell if the track bar is moving (song playing) or trackbar is not moving (song paused). There is no ValueChanged event, so I'm confused as to how to achieve this.

I need to do this to toggle the visibility of the pause and play buttons (toggling the visibility on click is not suitable for my project as im controlling multiple players, some of which will be playing and some of which will be paused)

Pseudo Code:

VB.NET:
        If Track Bar is moving Then
            btnPlay.Visible = False
            btnPause.Visible = True
        Else
            btnPlay.Visible = True
            btnPause.Visible = False
        End If

Can anyone please help?

Thanks,

Ciaran :(
 
Last edited:

Latest posts

Back
Top