Yeah I am using a picture box. I had issues trying to add the picture to
the picturebox programatically so I am currently not doing it that way. One
other thing I just noticed. If I first manually click on the checkbox the
gif runs fine. Then, as long as I did it manually at first every time after
that when I automatically change it, it works fine. The problem only
happens if I try to change it automatically the first time.
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Are you displaying this GIF in a PictureBox?
Have you seen the ImageAnimator class?
--
Bob Powell [MVP]
Visual C#, System.Drawing
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.
"Altman" <No******@SickOfSpam.com> wrote in message
news:u7**************@TK2MSFTNGP15.phx.gbl... I have a object that contains a check box. When the value changes it
raises an event for that object. I then have another object with a animated gif
in it. I linked the event of the first object to change the visible
property
of the animated gif in the second object. If I click on the checkbox to
change it, all works fine. But if I try to change it programatically,
(through a timer thread) the image shows up but it does not move. How
can
I get it to animate? I have tried the update, refresh, invalidate method
of
the animated gif but it doesn't work.