Results 1 to 4 of 4

Thread: Media Player

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    3

    Lightbulb

    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.
    gwizz

  2. #2
    Junior Member
    Join Date
    May 2000
    Posts
    22
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    3

    I thought of that.

    I just can't find out which property(ies) i need to reference to.
    gwizz

  4. #4
    Lively Member
    Join Date
    Apr 2001
    Location
    Dover, UK
    Posts
    70

    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
  •  



Click Here to Expand Forum to Full Width