Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated