Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

animation?

Posted on 1998-07-29
4
Medium Priority
?
335 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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.
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.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

715 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