Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows media player control properties 1

Status
Not open for further replies.

megabyte214

Programmer
Nov 7, 2001
40
US
I am looking for the property that returns the time remaining for the windowa media player control. I am using it to play mp3 files.
This is what I have, but I know it is wrong.
Code:
Private Sub lblTime_Click()
lblTime.Caption = "Time Remaining " & MediaPlayer1.Duration & " Seconds"
End Sub

Thank you.
 
just add a timer to your form,set the interval to 1 and then when you hit play enable the timer and add this code:
Code:
Private Sub Timer1_Timer()

Label1.Caption = Round(MediaPlayer1.Duration - MediaPlayer1.CurrentPosition, 0)

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top