If your button only says "repeat (on)" or "repeat (off)", then perhaps try getting rid of the ElseIf. In that line, just put ELSE and continue with code.
[vb5 & starting to move to vb2008] I appreciate the help I get from everyone. Thank you.
Private Sub MediaPlayer1_EndOfStream(ByVal Result As Long)
Me.MediaPlayer1.Stop
If (Me.Command3.Caption = "Repeat (off)") Then
Me.MediaPlayer1.Stop
Else
Me.MediaPlayer1.FileName = Me.CommonDialog1.FileName
Me.MediaPlayer1.Play
End If
End Sub
Yes, that worked. I was beginning to think he didn't have it in the right event but I couldn't get his project to work for me because we have different versions of MP installed. How can one get the old MP control on vb if you have the latest MP installed that replaces the old control?
[vb5 & starting to move to vb2008] I appreciate the help I get from everyone. Thank you.
DrivenByWat, i also had the media player 10.
so i downlod and registred the msdxm.ocx from http://www.ocxdump.com/ocxfiles/M/msdxm.ocx
, to register this ocx, open your Run dialog, type Regsvr32 and leave a space, now drag and drop the downloded file in to your Run Dialog. so the path is auto completed. say ok. a message sould appear 'Registration of OCX Succesfull'.
Thank you for your effort tooo to solve his issue.