Solved

Running an AVI file in Visual Basic

Posted on 2001-08-02
5
294 Views
Last Modified: 2013-11-25
I developed an application in visual basic which retrieves huge valid data from back end it takes some time to complete the process in the mean time I want an avi file running on the screen and once the process is done it should stop the AVI file.

Its something like when we are copying files in windows during the process it displays the file copy avi and once the copy process is over the avi also gets stopped.


How to do this in visual Basic
0
Comment
Question by:gondesiravi
5 Comments
 
LVL 33

Accepted Solution

by:
hongjun earned 20 total points
ID: 6344246
Add this
Project->Components then check "Microsoft Windows Common Controls-2 6.0

Private Sub Form_Load()
     aniSearch.Open App.Path & "\Search.avi"
End Sub

Private Sub Start()
     Animation1.AutoPlay = True
     ' your do while statement
          ' Add this in your do while statement
          DoEvents
     ' end of your do while statement
     Animation1.AutoPlay = False
End Sub

hongjun
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6344248
The trick is to use DoEvents and the animation control from "Microsoft Windows Common Controls-2 6.0"

hongjun
0
 
LVL 51

Expert Comment

by:Ryan Chong
ID: 6344272
Hi gondesiravi,

You can use the Microsoft Media Player Control, add it from Project > Component:

Private Sub Form_Load()
    MediaPlayer1.Open "C:\Program Files\Microsoft Visual Studio\Common\Graphics\Videos\Download.avi"
End Sub

'Hope will help.
0
 
LVL 1

Author Comment

by:gondesiravi
ID: 6344312
Hai ryancys

If use the above code

The avi file is running after the process is done

0
 

Expert Comment

by:rss2
ID: 14759874
What does aniSearch refer to in the accepted answer above?
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need more details 5 182
Need a complete list of ASP.NET page load events 3 63
PL SQL Developer 7 67
Set WorkSheet  not Working 9 50
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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 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…

679 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