add an object to my form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to insert an animated gif to my form and I get an error
System.runtime.interopServices.Exception: A generic error occurred in GDI+
At System.Drawing.Image.SelectActivFrame
 
You should be able to put the animated GIF straight into a picturebox and
it'll play it automatically.

How are you trying to insert this image?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
amos hchmon said:
I want to insert an animated gif to my form and I get an error
System.runtime.interopServices.Exception: A generic error occurred in GDI+
At System.Drawing.Image.SelectActivFrame

How did you display the GIF file? Did you assign it to a picturebox'
'Image' property or are you using the 'ImageAnimator' class directly?
 
Back
Top