Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gif in a different thread. 1

Status
Not open for further replies.

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
 
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
 
Ah. That makes more sense alright.
Thanks.

Durkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top