Results 1 to 2 of 2

Thread: How to implement a "seekable" progress bar?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2009
    Posts
    258

    Question How to implement a "seekable" progress bar?

    I'm building a media player control, and right now I have a progress bar showing as the file plays... that part works fine. What I want to do is add a "seek" feature, just like what you see in most media players... click on the progress bar and it jumps to that point in the seekable media stream. I can do the seeking part myself, I just need to know how to implement the user interface. As far as I can tell, the ProgressBar doesn't support this, and I don't see another .NET control that would.

  2. #2
    Frenzied Member
    Join Date
    May 2014
    Location
    Central Europe
    Posts
    1,388

    Re: How to implement a "seekable" progress bar?

    progressbar has got a mousedown event
    Code:
        Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
            With ProgressBar1
                .Maximum = .Width
                .Style = ProgressBarStyle.Continuous
            End With
        End Sub
    
        Private Sub ProgressBar1_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles ProgressBar1.MouseDown
            ProgressBar1.Value = e.X + 1
            ProgressBar1.Value = e.X
        End Sub

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