I have a simple program where it plays a sound file, but I would like to see a progress bar. I think a slider would work fine, but how could I get this to work?
Thanks (MidgetsBro)
Printable View
I have a simple program where it plays a sound file, but I would like to see a progress bar. I think a slider would work fine, but how could I get this to work?
Thanks (MidgetsBro)
Are you using a control?
If so, which one?
If your using the media player control it's simple.
you could use the following:
in a command button:
in a timer:Code:slider1.value = 0
slider1.max = mediaplayer1.duration
mediaplayer1.play
That should work. If there is an error i'm sorry. I just wrote it just now, but you should get the idea.Code:timer1.interval = 1
slider1.value = mediaplayer1.currentposistion
hope that helps.
I am using an API code to play a wav file. It is still possible?
Thanks