Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Animation While WebBrowser control is Busy/Navigating 2

Status
Not open for further replies.

CubeE101

Programmer
Nov 19, 2002
1,492
US
I have a web browser built into one of my projects...

I have the tool bars all set up, but the only way you know the browser is busy is that I made the Stop Button light up while it is navigating, then disable it when it completes....

What would be the best way to display an animation while the WebBrowser Object is Working?

Gif? Avi? ImageList?

I would like to keep everything stored in 1 EXE...
So, it looks to me like I'll have to use an image list, unless someone wants to step me through resources (resource editing)... (which I'm not even sure would work anyway)

So, if it is down to the Image List, I guess I will get to use a timer to start and handle the animation...

I will probably start the animation in WebBrowser1_BeforeNavigate2

Then Stop it in WebBrowser1_NavigateComplete2

Is there a better way to handle this...

This seems like the long way around the situation...

Does any one know how the animation is handled in IE ?

This is all I found (C#) and it looks as though they are using an Image List too...

Thanks in Advance ;-)
-Josh

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
On the other hand... here are 2 google searches of interest:



The first contains an example that loads a resource from a .DLL file, and plays from memory:

The second deals with a resource included in a project... though it uses a temp file (And actually shows both methods ... though with a WAV file):

Now... Is there not a way to cross these two?

I started playing with it last night, but the code is at home...

Might look further into it later ;-)

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Seems like code overkill, given that we've already achieved the desired goal with a minimal amount of code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top