Solved

VB5 and position of an avi file with mmcontrol ....

Posted on 1998-04-04
2
300 Views
Last Modified: 2012-06-22
Every time an avi file plays using mmcontrol ,  starts at different (Random ? )  position in the screen ...
Is there a method to play this avi file in a form , or standard coordinates ? ... an example please ... ;-)))
thanks ...
Argi
0
Comment
Question by:argi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
flivauda earned 10 total points
ID: 1460385
You can use the Animation control.  Add Microsfot common controls 2 under the components.  Then draw the animation control exactly where you want it and when you want to play the file do:

animation1.open "c:\myfiles\myavi.avi"

and it will start playing it
0
 
LVL 7

Expert Comment

by:kamall
ID: 1460386
argi,
If you are unsatisfied with flivauda's answer and want to use the MMControl, I can give you the code for playing the AVI file in any location inside your form.
Regards.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month6 days, 11 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question