1个回答
展开全部
private sub command1_click() '播放
mmcontrol..Command = "play"
end sub
private sub command2_click() '停止
mmcontrol..Command = "stop"
end sub
mmcontrol..Command = "play"
end sub
private sub command2_click() '停止
mmcontrol..Command = "stop"
end sub
更多追问追答
追问
我这里有4个按钮,我想单击一个按钮播放一个音乐,实现点唱功能。
提示未找到方法或数据成员。
这行变黄:Private Sub Option1_Click()
“.filename=" 被选中:MMControl1.FileName = "D:\1m.wav"
MMControl1.Command = "open"
MMControl1.Command = "play"
End Sub
Private Sub Option2_Click()
MMControl2.FileName = "D:\5m.wav"
MMControl2.Command = "open"
MMControl2.Command = "play"
End Sub
追答
Private Sub Option1_Click()
MMControl1.FileName = "D:\1m.wav"
MMControl1.Command = "open"
MMControl1.Command = "play"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询