It depends where the data comes from. For example when the datasource is a datatable which is filled by the results of the web service method then it may take some time to fetch the results. In that case the progress bar is very useful for the user.
If you're loading NOT in a loop you can randomly place this in your code:
Code:
application.doevents
progressbar.value += 1
If you're loading in a loop and you know how many iterations you will do you can figure out what percent done you are and set the progressbar.value to = that percent.
If you don't know how many iterations there are..... Then I dunno..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.