|
-
Apr 18th, 2001, 05:34 PM
#1
Thread Starter
New Member
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.
-
Apr 18th, 2001, 05:54 PM
#2
Junior Member
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
-
Apr 19th, 2001, 02:40 PM
#3
Thread Starter
New Member
I thought of that.
I just can't find out which property(ies) i need to reference to.
-
Apr 25th, 2001, 09:21 PM
#4
Lively Member
this may help...........
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|