Today i try write my own Music Player in C# - winmm.dll, but I don't know, how to go to next song, when last is end.
Button1. Load music.
Button2. Add address from textBox, to listbox.
Button3. Stop playing.
And all work, when i add my music to playlist, and click on selected address, music start. But:
- How i can go to next song, when last end?. Because now, when song is end, player no start play next song.
- When I click on Music2 it starts to play, but then wants go to the next song when
Music2 end - in this case Music3 .
- When I click on Music1 it starts to play, but then wants go to the next song when
Music1 end - in this case Music2 .
etc... Easy Play list...
In listBox have:
And i want:
C:/Music/Blablabla.mp3 started.... Song.... End.
Now my program: Play song... When song end, make nothing.
I want when:
C:/Music/Blablabla.mp3 when song is end, go to
C:/Music/Blablabla2.mp3. When C:/Music/Blablabla2.mp3 end go to:
C:/Music/Blablabla3.mp3. When C:/Music/Blablabla3.mp3 end, go to:
C:/Music/Blablabla.mp3 (First song)
This is my code:
View Complete Post