This project has moved. For the latest updates, please go here.

play from position set in trackbar

Dec 3, 2012 at 5:15 AM

Hi, this might be a newbie question but I am banging my head against the wall trying to figure this out..

I have a trackbar and I am playing a song, now I would like to move the trackbar or click in a certain position and have the track play at exactly that point.  I have looked around and apparently I use the Mouse_Down events on the trackbar but how do I use the class to play from that same position?

Coordinator
Dec 3, 2012 at 6:03 AM

There is a Scroll event which you need to handle, not Mouse_Down. Then you can look at the trackbar value. This is what the NAudioDemo app does, so you can look at its source code.