Home All Groups Group Topic Archive Search About

Animated GIFs in VB.NET 2005

Author
23 Nov 2006 10:31 PM
ZikO
Hi.

I am making a Multimedia Presentation in VB.NET 2005 and I have some
animated GIFs which I need to use. I tried to use PictureBox for it but it
doesn't play an animation in GIFs :/. What I should do to resolve this
problem, do you have any suggestions?

Regards.


--
ZikO
GG 5557876

Author
23 Nov 2006 10:58 PM
Herfried K. Wagner [MVP]
"ZikO" <ze***@op.pl> schrieb:
> I am making a Multimedia Presentation in VB.NET 2005 and I have some
> animated GIFs which I need to use. I tried to use PictureBox for it but it
> doesn't play an animation in GIFs :/.

The picturebox control supports playback of some animated GIFs.  You may
want to play around with the options of the GDI export filter of your
imaging application.  In addition, check out the 'ImageAnimator' class.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
24 Nov 2006 3:45 PM
ZikO
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%236HbzL1DHHA.3596@TK2MSFTNGP03.phx.gbl...
> "ZikO" <ze***@op.pl> schrieb:
>> I am making a Multimedia Presentation in VB.NET 2005 and I have some
>> animated GIFs which I need to use. I tried to use PictureBox for it
>> but it  doesn't play an animation in GIFs :/.
> The picturebox control supports playback of some animated GIFs.  You may
> want to play around with the options of the GDI export filter of your
> imaging application.  In addition, check out the 'ImageAnimator' class.

Thanks mate.

You won't believe it but I had to load gif by Form Load Event and use

PictureBox1.Image = Image.FromFile("name.gif")

insted of loading picture by design properties!
Now it's working :). But anyway do you think ImageAnimator class would be
better way to use gifs?

Regards.


--
ZikO
GG 5557876
Author
24 Nov 2006 8:16 PM
ZikO
> But anyway do you think ImageAnimator class would be better way to use
> gifs?
> Regards.

Nevermind :/. The ImageAnimator is better but I am not as good to understand
this class. In MSDN, there are too general examples and I am not able to
read and understand them. Thanks.



--
ZikO
GG 5557876