Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1998-04-04
2
Medium Priority
?
302 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
2 Comments
 
LVL 1

Accepted Solution

by:
flivauda earned 20 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

877 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