How to detect when a mp3 file has finished playing
c#, winforms
Solution
If you don't necessarily need to know when the file has completed for any other purposes than looping, you may consider the setMode method to turn track looping on.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd564867(v=vs.85).aspx
Problem
My c# windows form is enable to play an mp3 file.I did this using this code ``` WMPLib.WindowsMediaPlayer wplayer; wplayer = new WMPLib.WindowsMediaPlayer(); wplayer.URL = "c:/Standup.mp3"; wplayer.controls.play(); ``` this works perfectly but i want to know when the file has finished playing so that i can restart it. Pls how do i do that?