473,573 Members | 5,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6728
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******@SickO fSpam.com> wrote in message
news:u7******** ******@TK2MSFTN GP15.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@_spamkille r_bobpowell.net > wrote in message
news:%2******** *******@TK2MSFT NGP12.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******@SickO fSpam.com> wrote in message
news:u7******** ******@TK2MSFTN GP15.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.S topAnimate(Me.P ictureBox1.Imag e, AddressOf OnFrameChanged)

"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > wrote in message
news:%2******** *******@TK2MSFT NGP12.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******@SickO fSpam.com> wrote in message
news:u7******** ******@TK2MSFTN GP15.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
8709
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 FrontPage and 'Preview in Browser'. However, When I enter the URL or when I 'select all' html and paste it into the 'add your own html' box in ebay,...
1
1011
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 with an animated gif. I have placed a div in the search page which contains the message and animated gif. I hide the div by making "display: none" in...
9
9671
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 seems to deal with showing the GIF and not saving it. Thanks, John
10
23472
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
6315
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 that I get is a box with nothing in it. It almost seems as if the file will not open on my page, let alone animate. It still works fine with my...
27
13988
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 dwells on some frames longer than it should. Searching for this problem, I have found several people who have stated that animated GIFs don't work...
7
2434
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
1557
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 copy the animated gifs via Perl onto the static image that I made with php? I've tried with php imagecreatefromgif(), which produces a static image. I...
0
7792
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8039
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7800
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6435
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5296
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3738
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3744
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1049
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.