[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 951
  • Last Modified:

Thread for animated gif

In a VB.Net Windows app, I want to display a picturebox containing an animated gif while the app is doing some crunching and populating diffferent controls on the form.  I am unsure of  how to display the picture box in a seperate thread so that the gif can do it's animation without freezing.

1 Solution
Mike TomlinsonMiddle School Assistant TeacherCommented:
The PictureBox has to stay on the main UI thread...that's where it belongs.

"while the app is doing some crunching"

The "crunching" is what needs to be placed into another thread...thus leaving the GUI able to do things like display animated GIFs.

itsupportgoodwillAuthor Commented:
That's it.   Thanks

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now