Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitlePlay an AVI animation inside your program by using the Animation control
KeywordsAVI, video, play, Animation, Animation control
CategoriesMultimedia, 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
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated