I am using Visual Studio 2005, Windows Application (not web) and
Visual Basic.
When I place an animated gif (not in runtime) in a button or picture
box, it works fine. When I change the gif in runtime from an
imagelist or Image.FromFile command, the image is displayed but there
is no animation.
How do I change (in run-time) one animated gif to another animated gif
and display the animation?
hello dude. i don't know why if i take the animated image from imagelist that i assigned before to picturebox, the animation will not work.
Ex: ("picturebox.image = imagelist.images.item(0)")
but if let say you keep the collection of image in a folder. then you assign the image location, then the animation will work.
Ex: picturebox1.imagelocation = "C:\images\me.GIF"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.