0
Answer

Animated gif from embedded resource gif - doesnt work

julz barrab

julz barrab

16y
7.3k
1

Hi,

If i use an animated gif from the C drive my animation works fine

bmp = new Bitmap(@"C:\\cbJBsml.gif");
ImageAnimator.Animate(bmp, new EventHandler(this.OnFrameChanged));
this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);

However if i use the gif as en embedded resource (i want to do it this way so my application can be used from a single exe file) like so...

bmp = new Bitmap(GroupingGA.Properties.Resources.cbJBsml);

Then the image does not animate, why is this? is there a way around this?

Thanks in advance,
Jules