How do I make a Slider that will mimic the slider bar on a Windows Media Player Control.
I want to use it so I can hide the control but still have a position indicating slider.
Printable View
How do I make a Slider that will mimic the slider bar on a Windows Media Player Control.
I want to use it so I can hide the control but still have a position indicating slider.
I am not sure about your media player control.......but if you know how to change the value of the slider of the media player control, then your all set.....
First add microsoft windows common controls either 5.0 or 6.0.........not sure......in there you will find a slider............add it to your form. Next, find out the maxium value of the slider control you are mimicing and set it to your slider. Do this for any other property that is important.
Each time the user moves the slider......
Private Sub Slider1_Change()
go (name of media controls slider).value = slider1.value
I hope this helps
End Sub
I just can't find out which property(ies) i need to reference to.
I dunno if this is any use, but on a slider i used in mediaplayer,
i set slider.max to Mediaplayer1.Duration
the other useful thing to know is that Mediaplayer.currentposition not only lets you know where you are in the media file, but you can use it to SET the position, too, with your slider.
eg, Mediaplayer.CurrentPosition = 0 ...start of file
mediaplayer.CurrentPosition = MediaPlayer.Duration /2...half way through the file
Hope that helps you out