Would this work for you?
Code:
Option Explicit
Dim blnPlay As Boolean
Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
blnPlay = True
With MMControl1
.FileName = "C:\WINDOWS\Media\ding.wav"
.Wait = True
.Notify = False
.Shareable = False
.Command = "Open"
.Command = "PLay"
End With
End Sub
Private Sub Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
blnPlay = False
End Sub
Private Sub MMControl1_Done(NotifyCode As Integer)
With MMControl1
.Command = "Close"
If blnPlay Then
.FileName = "C:\WINDOWS\Media\ding.wav"
.Wait = True
.Notify = False
.Shareable = False
.Command = "Open"
.Command = "Play"
End If
End With
End Sub