Reputation: 649
I am using background worker to execute an "Import" web-service call;
This import operation call can take about 5 seconds to complete, so i was wondering how i could best visually entertain the user. I have seen that most progress bars are more or less used in loop operations where they get updated per object processed. In my doWorker, i just have the webservice call;
Something like :
Details importinfo = (Details)sender;
e.Result = WebService.ImportMe(importinfo);
So will it be smart to have a progress bar in such an operation or some animation while the user waits for completion ? How can i best approach this ?
Upvotes: 0
Views: 1059
Reputation: 4017
When you have no idea how long it will take and/or at what "point" of the operation you are you can set the Style
to ProgressBarStyle.Marquee
.
Upvotes: 2