473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Animated gif problem

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.
Nov 21 '05 #1
3 6704
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.

Nov 21 '05 #2
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.


Nov 21 '05 #3
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)

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


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DOK | last post by:
I'm trying to create an eBay ad. So far, I've got the page the way I want it. However, the few animated gif's I have on the page display but are no longer animated. I can get it to work in...
1
by: metsymani | last post by:
In my web application, I have a search screen coded in ASP.Net. The Search process takes lot of time. So, I need to show a wait page informing the user that "Search is in progress. Please wait" along...
9
by: John J. Hughes II | last post by:
Is it possible using Image or Bitmap to build and save an animated GIF file? I am not have a problem saving the GIF file just getting the frames added to it. I did find ImageAnimator but it only...
10
by: Liz | last post by:
All: Can anyone tell me why my animated GIF does not show up as animated when put into a pictureBox?? Thanks. Liz
7
by: Gary Kaucher | last post by:
At the top of the page on my website http://www.itemlook.com I have an animated gif called "eyeline.gif". It has worked fine in the past, but recently I am unable to get it to work using IE6. All...
27
by: Phil | last post by:
I thought it would be nice to display some animated GIFs on some of my forms. I put a PictureBox control on a form, and loaded my GIF file in. It animates, but not properly. It seems very jerky and...
7
by: rusdyrip | last post by:
hi all i want to make Loading Form with animated gif i make like this 'do events formloading.showdialog() 'do events
0
by: helraizer1 | last post by:
Hey, I have a PHP script that I made for an image based shoutbox with emoticons. The problem is that php GD doesn't support animated gifs, yet perl GD does. How would I make it so that I could...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.