下面就可以编写代码了。首先在窗体的"通用声明"部分声明函数 Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA"(Byval lpstrCommand As String,ByVal lpstrRetumString As String,ByVal uReturnLength As long,ByVal hwndCallback as long) As long
Dim mfn As String
下面就是各个对象的代码了: Private Sub Form_load() mfn="" play.Enabled=False pause.Enabled=False Stopplay.Enabled=False back.Enabled=False divw.Enabled=False Timer1.Enabled=False Timer1.Interval=500 End Sub
Private Sub open_Click() On Error Goto err With CommonDialog1 .CancelError=True .Filter="音乐文件