Hello Scirious,
There's several methods depending on the circumstances..
Assumptions:
- The animation sequence is not known until runtime
Solution: Build an animation stream at runtime composed of the various gifs.
(Yes, the .NET framework can both play and edit animated gifs.)
Assumptions:
- The animation sequence is known at design time OR there is a very small
number of possible sequence permutations.
Solution: Build the composite gif/s at design time and include them as embedded
resources.
-Boo
People, I need a way to detect the moment an animated GIF gets to it's
end to switch to a different GIF. I can't use a Timer because the GIFs
have different times and doing so (as I'm doing at the moment) causes
some of the images to change before ti gets to the end and other run
more than one time.
Do animated GIFs trigger any event I can use to detect when it
finished executing?
If not, is there a way to do it?
TIA,
Scirious.