Solved

Playing animated GIF while populating Treeview.  Please Help!

Posted on 2004-04-28
2
735 Views
Last Modified: 2013-12-25
I am populating a Treeview in a program and it takes a long time.  I want to play a .GIF animation while it is loading.  I have the GIF loaded into a WebBrowser.  I can only get the first frame of the animation to play while the loop is running to fill the Treeview.  The animation will play after the Treeview is filled.  How do I run the loop AND have the animation play at the same time?

I am using VB 6.0 sp5.  Let me know if you need any other info!

Thanks!!
0
Comment
Question by:jtminton
[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
2 Comments
 
LVL 9

Accepted Solution

by:
p_sie earned 500 total points
ID: 10940139
Did you place DoEvents in the procedure where you are filling the Treeview?

Example

For i = 1 to 1000
    Tree.nodes.add ....
    DoEvents
Next

Doevents will let other processes get processor time!
0
 

Author Comment

by:jtminton
ID: 10942238
Thanks, I should have known that!  It worked, but it made my tree load 2.5 times slower.  Oh well.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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