This is probably an easy question... How do I open and play a wav file NOT using the media player looking thing. I simply want the user to click on a command button and a specific wav file will play. The following code is fine except it uses that lame looking media control thing
Private Sub Form_Load()
MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "WaveAudio"
MMControl1.FileName = "C:\WINDOWS\MMDATA\GONG.WAV"
' Open the MCI WaveAudio device.
MMControl1.Command = "Open"
Private Sub Form_Unload(Cancel As Integer)
MMControl1.Command = "Close"