以下是代码,麻烦帮忙看下哪里出错啦啊:
Option Explicit
Dim playfilename As String
Dim playposition As Double
Dim MediaPlayer1 As String
Private Sub Command1_Click()
Command1.Enabled = False
MediaPlayer1.Pause
playposition = MediaPlayer1.CurrentPosition
End Sub
Private Sub Command2_Click()
Command1.Enabled = True
Command3.Enabled = True
MediaPlayer1.FileName = playfilename
MediaPlayer1.SelectionStart = playposition
MediaPlayer1.Play
End Sub
Private Sub Command3_Click()
playposition = 0
Command3.Enabled = False
Command1.Enabled = False
Command2.Enabled = True
MediaPlayer1.Stop
End Sub
Private Sub Command4_Click()
CommonDialog1.showopen
playfilename = CommonDialog1.FileName
playposition = 0
End Sub
Private Sub Command5_Click()
Unload Me
End
End Sub