Animated gif problem

A

Altman

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.
 
A

Altman

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.
 
A

Altman

How can I get the image that is in a picture box to stop animating? I tried
the imageanimator class but I can't get it to work. I put the image in the
picture box and put this code in there
ImageAnimator.StopAnimate(Me.PictureBox1.Image, AddressOf OnFrameChanged)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top