Hey,
In a picture box I have an animated image but it only changes it's frame when I move to another tab and then come back, it does not contenuesly keep on going, it just changes one frame every time I go to the tab it is in........
Thanks :)
Hey,
In a picture box I have an animated image but it only changes it's frame when I move to another tab and then come back, it does not contenuesly keep on going, it just changes one frame every time I go to the tab it is in........
Thanks :)
Animated image problem
dealwi8me
don't think I understand.
when having an animated gif file in the picturebox, it won't animate it in the IDE but of course when you run it - it will animate it normally. There must be something there which is stopping from animating it correctly if you are stating, as you have, that it does not animate correctly.
I was able to do this fine with a test gif, simply in code, the normal way of loading a picture into a picturebox:
this.thePictureBox.Image = Image.FromFile("theanimatedGif.gif");
and saw it animating correctly on the form.
jschroeder
I did the same thing, I had made a new app. to test this out before I added the animated gif and it was a 500x500 image and it animated just fine, but for some odd reason this one wont...but the 500x500 one was a .png...
this gif is only 20x20, but I dont think size matters...
Thanks :)
Ritesh305
code would be helpful.
Does the image play properly, outside of the application
cplusplus1
He means...
He has an animated *.gif image that he has placed inside a picture box in his application. It does not automatically animate on its own. So when he runs his application, it is stuck on the very first frame. However, when he switches to a different tab on his application, (this image is now not visible), and then switches back, (now it is again), the animated *.gif image has moved to the next frame in the animation timeline. (within the *.gif image). So meaning, each time he switches to a different tab and then back, the animation cycles to the next frame in the animation timeline.
I am thinking that maybe it is cycling through the timeline because when you switch to a different tab, and then back, it repaints the picturebox, possibly causing this awkward behavior. However, I have never had such troubles in my applications as all my *.gif animations have always played automatically without any problems.
And actually, providing us with code 'could' be helpful... (That includes designer generated code).
If I mislead everyone on what you mean, correct me.
JC Carmo
There is no code...
The image itself is animated, it if a .gif, it does not even show the animation inside of the app. but when I run the app. then it does what I explained in the first post...But I cannot do the code way to animate it by having images and coding it to change the image becuase it will be saved by the user and then it would not be animated...
Thanks :)
AlexBB
Well, there is no code to show you, there is no code that has to do with anything about the images in the program... There will be soon thoe, when I get drag and drop code in it....So there is not really any code....
Thanks :)
EDIT: now another odd thing has just happened...I deleted the picture box and added another one and put the same picture in it and now it wont even change frames when running....