Home All Groups Group Topic Archive Search About

animated gif in a picturebox

Author
11 Jan 2006 1:31 AM
Al_C
Hi,
I have an animated GIF that I set to do 1 loop.  Works fine in in apps like
the quicktime player and the windows picture viewer.  But when I use it as a
GIF in a picture window it loops and loops and loops and loops.
Since the GIF seems OK in other apps, is there something I am missing about
the picturebox in VB?
FWIW - Happens in VB 2003 and VBExpress.

Author
11 Jan 2006 12:59 PM
Herfried K. Wagner [MVP]
"Al_C" <acl***@bicnet.net> schrieb:
> I have an animated GIF that I set to do 1 loop.  Works fine in in apps
> like the quicktime player and the windows picture viewer.  But when I use
> it as a GIF in a picture window it loops and loops and loops and loops.
> Since the GIF seems OK in other apps, is there something I am missing
> about the picturebox in VB?

You could try to animate the GIF animation using the 'ImageAnimator' class.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
12 Jan 2006 12:54 AM
Al_C
Thanks  Herfried, looks just like what I need.



Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%23atZf7qFGHA.3728@tk2msftngp13.phx.gbl...
> "Al_C" <acl***@bicnet.net> schrieb:
>> I have an animated GIF that I set to do 1 loop.  Works fine in in apps
>> like the quicktime player and the windows picture viewer.  But when I use
>> it as a GIF in a picture window it loops and loops and loops and loops.
>> Since the GIF seems OK in other apps, is there something I am missing
>> about the picturebox in VB?
>
> You could try to animate the GIF animation using the 'ImageAnimator'
> class.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>