Solved

animation?

Posted on 1998-07-29
4
311 Views
Last Modified: 2013-11-19
i want like an animation to be displayed when i am searching for a record
like the "find files" one on win95..the animation will stop if no record is found
and will disappear if record is found..
how do i do this in vb5?
0
Comment
Question by:brohans
4 Comments
 

Expert Comment

by:endeavor
ID: 1467103
I am pretty sure .AVI files are involved but I dont know how to do it.

-- george

0
 
LVL 1

Expert Comment

by:strowger
ID: 1467104
The easiest way to do this is with a picture object array...

(in form_load)
set objPics(0) = LoadPicture("Buttefly1.bmp")
set objPics(1) = LoadPicture("Buttefly2.bmp")
etc...

then in the timer event you cycle the images

Static intCount as integer
if intCount = 0 then
    intCount = 1
Else
    intCount = 0
End if
PaintPicture objPics(intCount), 0, 0

0
 

Author Comment

by:brohans
ID: 1467105


i looking for the animation avi file and the code to play it in vb5 if searching ...
if no records are found...it will stop playing...
can anyone tell me how to do this?
0
 
LVL 1

Accepted Solution

by:
SeanGiles earned 50 total points
ID: 1467106
ue the animation control in Microsoft Windows common controls ocs
comctl32.ocx

add this before the code where you want animation to begin
With Animation1
AutoPlay = True
Open "c:\program files\devstudio\vb\graphics\avis\filenuke.avi"
End With

and use the controls "close" method when your finished. ie: animation1.close

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to count occurrences of each item in an array.

680 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