Solved

Centering AVI's launched with MMControl

Posted on 1998-07-24
2
130 Views
Last Modified: 2012-05-04
How do I manipulate the position of the window that AVI's played using the MMControl appear in? I can't seem to find any way of doing this....
0
Comment
Question by:Pkelley
2 Comments
 

Accepted Solution

by:
fc_hnat earned 100 total points
ID: 1466582
You can put the avi into a picture box using the code below.
If the picture box is on a form the form can be moved any where using the move method for the form.

MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.hWndDisplay = Picture1.hWnd
MMControl1.DeviceType = "AVIVideo"
MMControl1.filename = "path of avi file"
MMControl1.Command = "Open"

!fc_hnat
0
 

Author Comment

by:Pkelley
ID: 1466583
Thanks! I have the time now to make a presentation I'm doing at work a bit more professional now!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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