Windows Media Player scrollbar RRS feed

  • Question

  • hi

    I want to put HScrollBar
    Performs the same action as the video progress bar



    - currentPosition   vedio time

    • Edited by ahmeddc Friday, May 17, 2019 3:23 AM
    Friday, May 17, 2019 3:22 AM


  • Hi,

    Do you want to this effect?


    Public Class Form1
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            AxWindowsMediaPlayer1.URL = "D:\test.mp3"
            HScrollBar1.LargeChange = 0
            Timer1.Enabled = True
            Timer1.Interval = 100
        End Sub
        Private Sub HScrollBar1_ValueChanged(sender As Object, e As EventArgs) Handles HScrollBar1.ValueChanged
            AxWindowsMediaPlayer1.Ctlcontrols.currentPosition = HScrollBar1.Value
        End Sub
        Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
            HScrollBar1.Maximum = AxWindowsMediaPlayer1.currentMedia.duration
            HScrollBar1.Value = AxWindowsMediaPlayer1.Ctlcontrols.currentPosition
        End Sub
    End Class

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    • Marked as answer by ahmeddc Saturday, May 18, 2019 5:07 AM
    Friday, May 17, 2019 7:11 AM