Solved

Using an .avi file on a visual Basic Form

Posted on 2001-06-12
7
217 Views
Last Modified: 2013-11-25
I am developing a VB Desktop application. What i want is that when the exe file is run, a form should run a .avi file. after the file has ended, the start up form (or the main form ) my project should be loaded. I have tried using Component (Microsoft Active Movie Control) but am unable to achieve the desired result. Thanks in advance to everybody who send a solution
0
Comment
Question by:Hi
7 Comments
 

Expert Comment

by:gauravdhup
ID: 6181024
Your solution

Visit my website and download the Digital Diary program
www.gauravcreations.com

It has the code for playing an avi file

If you cannot understand the code Please tell me I will explain it to you
0
 
LVL 5

Accepted Solution

by:
AndrewDev earned 50 total points
ID: 6181238
Example using the Microsoft animation control
http://www.freevbcode.com/ShowCode.Asp?ID=316

Regards
Andrew
0
 
LVL 4

Expert Comment

by:nutwiss
ID: 6181916
there's load of samples for using a AVI from VB out there....

Just look at www.google.com and try something like 'AVI sample VB'

yeah?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Expert Comment

by:awjackin35
ID: 6189530
I used the MMControl like this in a command button.

Private Sub cmdVideo7_Click()
Dim dbName As String
   
    dbName = App.Path & "\video7.avi"
    MMControl7.Visible = False
    MMControl7.Notify = False
    MMControl7.Wait = True
    MMControl7.Shareable = False
    MMControl7.DeviceType = "AVIVideo"
    MMControl7.FileName = App.Path & "\video7.avi"
    MMControl7.AutoEnable = True
    ' Open the MCI WaveAudio device.
    MMControl7.Command = "Open"
    MMControl7.Command = "Play"
End Sub

If you change some of the properties and put it under the form load I think it will play the avi file when the form loads.
0
 

Expert Comment

by:awjackin35
ID: 6193900
Try altering my code and putting it under the form load.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7135946
Hi Hi@devx,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept AndrewDev's comment(s) as an answer.

Hi@devx, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7173218
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug this code 7 61
Recommendation vb6 to vb.net or others 14 149
how to know if my Checkbox is True in VB6.0? 9 55
Need a complete list of ASP.NET page load events 3 46
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

777 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