Hi guys,
I am playing a sound using MMC on a form that pops up. Ok here is the problem it plays fine the first time but when the form loads the second time
it plays no sound.
[CODE=vb]Private Sub Form_Load()
psSoundFile = "c:\alarm.w av"
MMControl1.Devi ceType = "WAVEAUDIO"
MMControl1.File Name = psSoundFile
CmdStop.Enabled = True
If MMControl1.Mode = mciModeNotOpen Then MMControl1.Comm and = "open"
MMControl1.Comm and = "play"
End Sub
Private Sub StopWav()
MMControl1.Comm and = "stop"
MMControl1.Comm and = "close"
MyMessage.Hide
End Sub
Private Sub CmdStop_Click()
StopWav
End Sub[/CODE]
Thanks for any help guys
Gobble.
I am playing a sound using MMC on a form that pops up. Ok here is the problem it plays fine the first time but when the form loads the second time
it plays no sound.
[CODE=vb]Private Sub Form_Load()
psSoundFile = "c:\alarm.w av"
MMControl1.Devi ceType = "WAVEAUDIO"
MMControl1.File Name = psSoundFile
CmdStop.Enabled = True
If MMControl1.Mode = mciModeNotOpen Then MMControl1.Comm and = "open"
MMControl1.Comm and = "play"
End Sub
Private Sub StopWav()
MMControl1.Comm and = "stop"
MMControl1.Comm and = "close"
MyMessage.Hide
End Sub
Private Sub CmdStop_Click()
StopWav
End Sub[/CODE]
Thanks for any help guys
Gobble.
Comment