Results 1 to 4 of 4

Thread: Inserting an .avi / .mpeg movie into a form

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    1

    Question How to insert an Avi/Mpeg or that sort of movies into VB forms?

    I'm making an adventure game as my isp in High School, and i want to make the game have a good Intro, i have a movie i wanna put in the start but i dont know how to make it play.. if anybody can help me here i'll be greatfull....
    Thank you in advance.

  2. #2
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Movies.

    You can use an MCIWndX control (how's that for a name, eh?), which comes with ActiveMovie, I think. Well, it either will or won't be in your components list. Operation is fairly simple. Just set the filename to your movie, set all the controls and status bars to invisible, and tell the thing to play in your code. I think it's even got a help file.

    ~Zero the Inestimable

  3. #3
    Member
    Join Date
    Nov 2000
    Location
    Palma de Mallorca, Spain
    Posts
    39

    Smile Try this too

    Apart from that, it's easier to put a Animation control(it comes with Microsoft Common Controls-2 in components section)
    But that's for avi only, for mpeg try Media Player Control
    Code:
    On Error goto Hell

  4. #4
    Guest

    Smile Animation

    In your project, add component module - Microsoft Windows Commond Controls-2 5.0. After that you will see one of the tool called Animation in the toolbox. Add that tool in your form. Then last thing is write small code:
    Animation1.Open "yourmovie.avi"
    Animation1.Play 1

    to stop playing:
    Animation.stop


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