Solved

animation?

Posted on 1998-07-29
4
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

734 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