Drew
April 15th, 2001, 12:01 AM
I have this code in my main form load procedure to play a media file:
MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "AVIVideo"
MMControl1.FileName = App.Path & "\video3.avi"
MMControl1.AutoEnable = True
' Open the MCI WaveAudio device.
MMControl1.Command = "Open"
MMControl1.Command = "Play"
I have to click on the play button to get it to play. How can I change the code to play after the form loads without clicking on the play button and how can I change the code to unload the media file when it is done playing?
MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "AVIVideo"
MMControl1.FileName = App.Path & "\video3.avi"
MMControl1.AutoEnable = True
' Open the MCI WaveAudio device.
MMControl1.Command = "Open"
MMControl1.Command = "Play"
I have to click on the play button to get it to play. How can I change the code to play after the form loads without clicking on the play button and how can I change the code to unload the media file when it is done playing?