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

x
?
Solved

VB.net Animated Gif

Posted on 2012-09-12
7
Medium Priority
?
601 Views
Last Modified: 2012-09-12
Is there any way to let an animated gif image animate in VB.net without being "paused" by other resource intensive processes.
In other words, that it animates in its own thread as a progress indication for my application?
0
Comment
Question by:koossa
  • 4
  • 3
7 Comments
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 2000 total points
ID: 38390070
>without being "paused" by other resource intensive processes.

Run those processes in their own threads and leave the UI to the UI thread.
0
 

Author Comment

by:koossa
ID: 38390078
There are 1000 of processes that will make use of this 1 progress indicator, so is there an easy way to do this?
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 2000 total points
ID: 38390234
UI elements have to run on UI thread.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:koossa
ID: 38390262
Run those processes in their own threads and leave the UI to the UI thread.

Can you give me a sample of how to do this?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 38390404
Can you tell us what sort of processing you are doing?

It can be as simple as starting a new thread to execute a method or using a backgroundworker component

http://www.java2s.com/Code/VB/GUI/BackgroundWorkerDemo.htm

http://www.dotnetperls.com/backgroundworker
0
 

Author Comment

by:koossa
ID: 38390417
I open a dataview that take 1 minute to load, and this is where I want the progress indicator / wheel, but stop during this process

MyDataAdapter.Fill(MyDataSet)

Open in new window

0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 2000 total points
ID: 38390469
Put that code in a separate method and run a thread on it or use backgroundworker (demo in links above). Do not assign MyDataSet to any UI control before filling it.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month19 days, 1 hour left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question