.gif Animation Play w/out Looping in Visual Basic .NET 2005 Beta 2 Express
Hi, can anyone tell me how to make a .gif animation play without looping? When I load one into a picturebox, even when the file is not designed to loop, it loops anyways. How can I stop this?
Thanks,
The Digital Pioneer
To prevent the GIF from playing at all you can set the PictureBox.Enabled property to false. However to play the GIF once without looping you will probably have to create your own control.
To do this you could use the Image.GetFrameCount inconjunction with the Image.SelectActiveFrame method to only loop the GIF image once.