Mar 4, 2004 #1 Durkin Programmer Nov 6, 2000 304 GB Hi. How can I get an animated gif to run on a windows form when the application is busy retrieving data? Thanks, Durkin
Hi. How can I get an animated gif to run on a windows form when the application is busy retrieving data? Thanks, Durkin
Mar 4, 2004 1 #2 chiph Programmer Jun 9, 1999 9,878 US Multi-threading in a WinForms app is tricky. The only thread which can update a form (including your animated gif) is the thread which created it. So, in your case, I would instantiate a new thread to go fetch your data, which leaves the original thread free to make the GUI dance. Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first Upvote 0 Downvote
Multi-threading in a WinForms app is tricky. The only thread which can update a form (including your animated gif) is the thread which created it. So, in your case, I would instantiate a new thread to go fetch your data, which leaves the original thread free to make the GUI dance. Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first
Mar 4, 2004 Thread starter #3 Durkin Programmer Nov 6, 2000 304 GB Ah. That makes more sense alright. Thanks. Durkin Upvote 0 Downvote