michellechan57
asked on
Animation
1) I would like to add some animation to my application in C# 2.0, VS2005, win form - something like the Microsoft Internet Explorer - the animation starts when it is accessing the internet and stops when it is not. It continues from where it stops previously in the next cycle.
One way is to start the animation before I access the database/network and stop it after I received the result/disconnect from the network - but this is going to be tedious and involve a lot of manual work.
Is there a better method? Is there a way to detect the network access and control the animation automatically?
Can someone help?
2) I am using an animated gif file for the animation. Problem is I can't stop the animation when required. Any suggestions in this case?
One way is to start the animation before I access the database/network and stop it after I received the result/disconnect from the network - but this is going to be tedious and involve a lot of manual work.
Is there a better method? Is there a way to detect the network access and control the animation automatically?
Can someone help?
2) I am using an animated gif file for the animation. Problem is I can't stop the animation when required. Any suggestions in this case?
Are you using pictureBox? If yes,try to set the Enabled property to false.
ASKER
The GIF animation didn't work in PictureBox, I used Button instead.
Setting Enabled property to false will stop the animation but will restart from the original start point, not the point where it was suppose to.
Setting Enabled property to false will stop the animation but will restart from the original start point, not the point where it was suppose to.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Hi joechina, thanks for the reply, get back to you in a few days time.