How do you show animated gifs with .NET Compact Framework
Asked Answered
U

1

6

I would like to display an animated gif on a .NET Compact Form. Currently I use a PictureBox control and toggle between .Visible = true and .Visible = false.

After .Visible = true the gif is shown however it's not animated. How can I get the .NET Compact Framework to animate it?

I already tried this but it doesn't work.

Upanddown answered 17/11, 2008 at 2:34 Comment(0)
B
7

By default the .Net Compact framework does not support displaying GIF based animations on a Windows Form. It is possbile to code up a custom animator that will essentially do the same. Here's a link to a sample class for displaying a GIF on the compact framework.

http://msdn.microsoft.com/en-us/library/aa446483.aspx

Bugs answered 17/11, 2008 at 6:49 Comment(1)
It is a pain to extract the single frames but at least it works. Thanks.Upanddown

© 2022 - 2024 — McMap. All rights reserved.