Solved

animation?

Posted on 1998-07-29
4
263 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
Comment Utility
I am pretty sure .AVI files are involved but I dont know how to do it.

-- george

0
 
LVL 1

Expert Comment

by:strowger
Comment Utility
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
Comment Utility


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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

763 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

11 Experts available now in Live!

Get 1:1 Help Now