Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends I am creating mp3 player in vb 2008 using media player control, How I can autometically start next song after first song finished ,will very very..... Thankful for reply!
Posted

1 solution

Add an event for the PlayStateChange event of the player control and check the state of e.state

When this is stopped (state = 1) (fyi playing state = 3) then just iterate your playlist and load the next track and issue a play command.

there are several other states also, if you do a debug.writeline(e.state) you can watch these occur if you load and play and stop a song.



Rather than go and rewrite a bunch of code, see http://www.devasp.net/net/articles/display/304.html[^]

and you should be able to work it from that.
 
Share this answer
 
Comments
waseem abo nabout 13-Mar-14 17:40pm    
how can i make a label for display total items in listbox , length of song, current item .. (duration labels)with auto play
pleas i need your help....
sorry for bad English
thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900