|  |  | 
              
              | 
                  | Title | Play an AVI animation inside your program by using the Animation control | 
|---|
 | Keywords | AVI, video, play, Animation, Animation control | 
|---|
 | Categories | Multimedia, Controls | 
|---|
 |  | 
 |  | Thanks to Kenneth Ives. 
Use the Animation control included in the Microsoft Windows Common Controls in Visual Basic 5 SP2 and later.
               |  | 
 |  
                | ' Open the AVI file.
Private Sub Form_Load()
    Animation1.Open App.Path & "\filemove.avi"
End Sub
' Start/Stop playing the AVI file
Private Sub Command1_Click()
    If Command1.Caption = "Start" Then
        Command1.Caption = "Stop"
        Animation1.AutoPlay = True
    Else
        Command1.Caption = "Start"
        Animation1.AutoPlay = False
    End If
End Sub |  |  |  |   |  |  |  |  |