[Resolved] mediaplayer1 repeat
This is my code, and i dont get repeat to work.
I think i did something wrong with last code.
vb Code:
Option Explicit
Private Sub Command1_Click() ' Browse button (works perfectly)
Me.CommonDialog1.Filter = "MP3 Files (*.mp3)|*.mp3|WAV Files (*.wav)|*.wav|MPG Movies (*.mpg)|*.mpg|AVI Movies (*.avi)|*.avi"
Me.CommonDialog1.ShowOpen
If Me.CommonDialog1.FileName <> "" Then
Me.MediaPlayer1.FileName = Me.CommonDialog1.FileName
Me.MediaPlayer1.Play
Else
MsgBox "Select a file first."
End If
End Sub
Private Sub Command2_Click() ' Hides the window
music.Hide
End Sub
Private Sub command3_click() ' Changes caption when click repeat box
If (Command3.Caption = "Repeat (off)") Then
Command3.Caption = "Repeat (on)"
ElseIf (Command3.Caption = "Repeat (on)") Then
Command3.Caption = "Repeat (off)"
End If
End Sub
Private Sub mediaplayer1_done() ' Should repeat, but wont work :S
If (Me.Command3.Caption = "Repeat (off)") Then
Me.MediaPlayer1.Stop
ElseIf (Me.Command3.Caption = "Repeat (on)") Then
Me.MediaPlayer1.FileName = Me.CommonDialog1.FileName
Me.MediaPlayer1.Play
End If
End Sub
Thanks,
Marius
Re: [Resolved] mediaplayer1 repeat
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. :thumb:
Re: [Resolved] mediaplayer1 repeat
This ocx does not overwrite your previous one :D
Re: [Resolved] mediaplayer1 repeat
Re: [Resolved] mediaplayer1 repeat
Well. The question is answered now :)
Thanks