Question Song Duration: Displays Incorrect!?

Jamie2993

Member
Joined
May 13, 2009
Messages
11
Programming Experience
1-3
Hi All,

Im trying to get a label to display the current song duration and current position (WHICH I HAVE DONE),
But it display incorrect:
VB.NET:
        Label3.Text = AxWindowsMediaPlayer1.Ctlcontrols.currentPosition \ 60 & ":" & Format(Int(AxWindowsMediaPlayer1.Ctlcontrols.currentPosition Mod 60), "00") & " / " & WMPLib.WMPPlayState.wmppsMediaEnded \ 60 & ":" & Format(Int(AxWindowsMediaPlayer1.currentMedia.duration.ToString Mod 60), "00")
Say a song was 3:30, it would display as 0:33, This is a displacement to the right by one.

Anyone know why it is doing this!?

Thanks In Advance,

Jamie.
 
Back
Top