Progressbar change on click

destrox

New member
Joined
Jun 16, 2010
Messages
4
Programming Experience
3-5
I'm currently developing a Media Player, everything works except the progressbar. It's always up to date with the progress of the playing song but you can't click on it yet if you want to rewind / fast forward. Can please someone tell me how to fix this problem?

Thanks in advance!
 
Use a TrackBar, not a ProgressBar

Actually, use the BASS.net API - it renders a waveform of your entire song as the progressbar, and clicking on it seeks the song.. This can help with e.g. "I want to seek to the breakdown in the middle, so I'll click on the bit where the waveform looks 'quiet' " plus.. it looks really cool! Note that if you intend to sell your Media Player, you'll have to license the API

The API includes examples to get you going, though maybe not in VB.NET - you can use a convertor to convert the C# ones
 
Last edited:
Trackbar

I'm now using the trackbar, but when I click on a location on the bar, it does the LargeChange instead of going to the clicked location.

Private Sub tbarProgress_Click(ByVal sender As Object, ByVal e As EventArgs) Handles tbarProgress.Click
wmp1.setcurrent_position(tbarProgress.Value)
End Sub

So I need to buy a license if I want to use Bass.net (It will be freeware)?
 
Back
Top