Article ID: 163440
Article Last Modified on 1/19/2007
162978 ACC97: "Unable to Open AVI File" Error Using Animation Control
Command button
--------------
Name: cmd1
Caption: Play Animation
Left: 1"
Top: .5"
Width: 1"
Height: 1"
OnClick: [Event Procedure]
Private Sub cmd1_Click()
With An1
.Visible = True
.AutoPlay = True
' Type the full path to Firework.avi on the following line.
.Open "Firework.avi"
End With
End Sub
Animation control
-----------------
Name: an1
Visible: No
Left: 1"
Top: .5"
Width: 1"
Height: 1"
Command button
--------------
Name: cmd2
Caption: Select && Play
OnClick: [Event Procedure]
Private Sub cmd2_Click()
With cd2
.Filter = "avi (*.avi)|*.avi"
.ShowOpen
End With
With an2
.AutoPlay = True
.Open cd2.FileName
End With
End Sub
Additional query words: OLE custom
Keywords: kbhowto kbprogramming kbusage KB163440