Click here to Skip to main content
15,888,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have used animated GIF in my application. Actually there is a process that takes quite long and I wish to show something to the user to show progress.
I have put a picture box and put animated GIF. It is visible property is set to false.
When user clicks on Save button, its visible property is set to true but animation does not show up.
Please advise what could be the problem.
Thnaks
Furqan
Posted

It won't show because you're trying to update the animated GIF and do you save on the same thread, namely the UI thread. You have no choice but to move the code that is doing the saving to a background thread. That will free up the UI thread to update the GIF image on screen.
 
Share this answer
 
Maybe this can help[^].
 
Share this answer
 
Comments
Manfred Rudolf Bihy 28-May-11 11:53am    
Not sure why some high rep member thought this ought to be downvoted. 5+

At least a comment should be left why.
Abhinav S 28-May-11 11:59am    
Yes, I was a tad disappointed with the downvote.
Thanks for noticing this and voting for the answer though. Most appreciated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900