Posted on 1998-07-29
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?
Question by:brohans

Expert Comment

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

-- george


Expert Comment

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")

then in the timer event you cycle the images

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


Author Comment

ID: 1467105

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

Accepted Solution

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

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


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

837 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