Undisputed007
Undisputed007

Reputation: 649

Using a progress bar or wait indicator during webservice call

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

Answers (1)

Matteo Umili
Matteo Umili

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.

enter image description here

Upvotes: 2

Related Questions