|
-
April 15th, 2001, 12:01 AM
#1
MMcontrol1
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|