'How Do I Use the MMControl?
Q. I have a filelist box with only .wav files in it and I want the MMControl to
open and play them as they are selected (clicked).
A. You must insert the MMControl in your form, and make it invisible.
Insert this code in the form_load section to set up the MMControl:
With MMControl1
.Notify = False
.Wait = True
.Shareable = False
.DeviceType = "WaveAudio"
.TimeFormat = 0
End With
Place the following code in the File1_Click event:
MMControl1.filename = file1.file_(file1.listindex)
mmcontrol1.command = "stop"
MMControl1.Command = "Open"
mmcontrol1.command = "Play"
This stops playing, opens a new wav and plays it.
Thanks to: Dennis
Downloads
In IE right-click and select 'Save Target As...' or in Netscape
right-click and select 'Save Link As...'
View Plain Text
Not Available
Not Available