Solved

Using an .avi file on a visual Basic Form

Posted on 2001-06-12
7
212 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now