Results 1 to 2 of 2

Thread: Playing AVI files

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93

    Post

    I am trying to play an AVI file within my form. I have tried using the microsoft animation control but getting 'Could not open this AVI file' - I think it could be a compressed AVI file that i am trying to play, but if you right click in explorer and click preview (which is exactly how i would like to see it) it plays it no problem.

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Try the ActiveMovie Control, ie.
    Code:
    Private Sub Command1_Click()
        ActiveMovie1.FileName = "Wizards\PDWizard\Working.avi"
    End Sub
    
    Private Sub ActiveMovie1_OpenComplete()
        ActiveMovie1.Run
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width